suggestbox - GWT make suggestions after search with no hits -
i have database words, , use suggestbox of gwt make search suggestions. want, after search lead no hits, make suggestions closest words in database.
for example, if user inputs "vadin", , word doesn't exist in database, "vaadin" , "avide" do, i'd display message like:
do mean "vaadin" or "avide"? any ideas on how achieve this?
maybe calculate levenshtein distance between query string , words in database?
Comments
Post a Comment