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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -