New Internal Search Engine...

Discussion in 'Support & Feedback' started by digitalpoint, Mar 24, 2010.

  1. #1
    I've replaced the vBulletin 4.x search (which was very slow and caused table locking issues) with a custom one I wrote based on Sphinx. The net effect is that searches should be more relevant and infinitely faster. Fast enough that it's able to spit out query results that would be insane to try to do with SQL (for example on member profiles, you can see what areas they post in the most).

    Anyway... long story short... search should be much, much, MUCH faster now.
     
    digitalpoint, Mar 24, 2010 IP
  2. K.Meier

    K.Meier Well-Known Member

    Messages:
    281
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Very nice. I'm a big fan of the What's New / New Posts button, and that took sometimes ages to load. Seems to be very fast now.
    Love the Post Area section on the profiles, very interesting.

    So your new search engine still fetches data from the MySQL Server, right? Or does it fetch the data from a cached/dumped directory?
     
    K.Meier, Mar 24, 2010 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    The system does a full reindex of everything in the forum weekly (takes about 10 minutes to do that), then internally it's keeping track of anything that's new, changed or deleted since the last full index, then keeps a much smaller delta index of the changes. The delta index is rebuilt every 5 minutes and takes about 1 second to rebuild. So when running queries, you aren't directly hitting the MySQL servers any longer.

    Also as a side note, the index rebuilding is transparent and people can still run queries properly when it's rebuilding.

    Because of the way it does the delta indexing new stuff won't show up for search for up to 5 minutes (until the recurring 5 minute process runs).
     
    digitalpoint, Mar 24, 2010 IP
  4. K.Meier

    K.Meier Well-Known Member

    Messages:
    281
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Nice idea and I'm sure the 5 minute delay won't hurt anyone.
    10 minutes to reindex this massive forum? And only 1 second to rebuild your delta index! Jeez
    May I ask is your Forum here running on several cluster servers, or just one monster machine? And do you have the SQL Database on a separate machine?
     
    K.Meier, Mar 24, 2010 IP
  5. Cyan

    Cyan Greenhorn

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    Very nice job. Love the new look and functionality.
     
    Cyan, Mar 24, 2010 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    It's a few clustered machines.
     
    digitalpoint, Mar 24, 2010 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    The display of search results has been improved when viewing results as posts (like when you search for all posts by a particular user). Now you can see a preview of the post within the search results.
     
    digitalpoint, Mar 25, 2010 IP
  8. CoreyPeerFly

    CoreyPeerFly Notable Member Affiliate Manager

    Messages:
    394
    Likes Received:
    24
    Best Answers:
    5
    Trophy Points:
    240
    #8
    Should HTML show up in those results?

    [​IMG]
     
    CoreyPeerFly, Mar 25, 2010 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    It's a known bug logged with vBulletin and hopefully they fix it soon. If not, I'll go in and fix it myself...
     
    digitalpoint, Mar 25, 2010 IP
  10. enivid

    enivid Well-Known Member

    Messages:
    1,954
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    175
    #10
    Search returns no results for me for the same search parameters that usually returned hundreds of posts before this new search engine feature. Why is that?
     
    enivid, Mar 26, 2010 IP
  11. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #11
    Don't know what those search parameters are, sorry.
     
    digitalpoint, Mar 26, 2010 IP
  12. enivid

    enivid Well-Known Member

    Messages:
    1,954
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    175
    #12
    The problem looks to be in the "(no prefix)" parameter. When I try to search for anything (Posts, Entire post, All Open Forums) and mark "(no prefix)" parameter I don't get any results. Even if I mark other prefixes along with "(no prefix)" I get nothing found, but when I remove "(no prefix)" I get the results for other prefixes.
     
    enivid, Mar 26, 2010 IP
  13. Braveheart2009

    Braveheart2009 Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I have always found the search feature on all forums to be really bad. They do not return the intended keyword you are looking for. It would be cool if it had google like features or even more accruate searching it would make life a lot easier.
     
    Braveheart2009, Mar 26, 2010 IP
  14. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #14
    Go ahead and try it now... the "no prefix" and "any prefix" options should work now.
     
    digitalpoint, Mar 26, 2010 IP
  15. K.Meier

    K.Meier Well-Known Member

    Messages:
    281
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #15
    Yeah most Forums have a very poor accuracy within their own built in search engine. I often use google for it:
    Site:forums.digitalpoint.com "my keywords"

    I wonder if shawns own search engine is more accurate, or if he used the same search algorithm that vBulletin uses.
     
    K.Meier, Mar 26, 2010 IP
  16. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #16
    It's not using vBulletin's algorithm. It should be (relatively) accurate.
     
    digitalpoint, Mar 26, 2010 IP
  17. CoreyPeerFly

    CoreyPeerFly Notable Member Affiliate Manager

    Messages:
    394
    Likes Received:
    24
    Best Answers:
    5
    Trophy Points:
    240
    #17
    You get that error when searching individual threads.
     
    CoreyPeerFly, Mar 27, 2010 IP
  18. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #18
    Should be fixed now... searching within a specific thread should work properly now.
     
    digitalpoint, Mar 27, 2010 IP
  19. CoreyPeerFly

    CoreyPeerFly Notable Member Affiliate Manager

    Messages:
    394
    Likes Received:
    24
    Best Answers:
    5
    Trophy Points:
    240
    #19
    CoreyPeerFly, Mar 27, 2010 IP
  20. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #20
    digitalpoint, Mar 27, 2010 IP