View Single Post
  #19  
Old 05-12-2018, 12:55 PM
Chewboy Chewboy is offline
Aviak


Join Date: Jun 2011
Posts: 98
Default

Quote:
Originally Posted by Octavian [You must be logged in to view images. Log in or Register.]
How tough to integrate is a "did you mean..." type of feature in case people misspell something or only know part of the item name?
I can give it a shot. Search is usually one of the more difficult problems to solve. Right now the search is my own home grown algorithm, which prioritizes full matches first followed by partial matches. You can see this in action when you type something like "wedding." It will match items that start with wedding followed by items that contain the word wedding in it. It will also try to match partial words like "iamond" will show you the results for diamond. The autocomplete I'd say it works fairly well, but you are right, nothing happens if you misspell something entirely, i.e. typing in 'rygorr' does not give you results for 'ry`gorr.'

Just now I looked into this a bit further and it looks like one of the features of the database I'm using is text indexing which can be used for search. I can play with that a bit and see if I can work up a 'did you mean?' section. It'd be so cool if you could type in ry`gorr armor without that stupid backtick and have it say "did you mean one of the following?" and have it list out 10 of the ry`gorr results.