Thanks Simon, i used a similar approach as SpellChecker to do search suggestion. I'll try that in search correction.
On Tue, Dec 15, 2009 at 7:30 PM, Simon Willnauer < simon.willna...@googlemail.com> wrote: > Weiwei, > Lucene Contrib offers a Spellchecker package that might help you with > your application. The spellchecker takes a dictionary of terms (build > from your search index or from some other text resource) and builds a > suggestion index from those terms. Internally terms are indexed as > ngrams. You can pass in a possibly missspelled term and a distance > measurement function to build up a suggestion array from the > suggestion index. > I have no comparison how good it works with chinese text though. > simon > > On Tue, Dec 15, 2009 at 8:08 AM, Weiwei Wang <ww.wang...@gmail.com> wrote: > > Hi, all, > > Most of us should have some experience about inputing an incorrection > > keyword in google or some other search engine. When this happens, google > can > > celverly suggest you another query keyword(not google suggestion). > > e.g. you intend to search for redhat, instead you type rdehat, the > > google will tell you Did you mean: > > *redhat*< > http://www.google.com/search?hl=en&newwindow=1&ei=0DUnS98JzYaQBbSTyfgM&sa=X&oi=spell&resnum=0&ct=result&cd=1&ved=0CAYQBSgA&q=redhat&spell=1 > > > > > > > > How can i implement this feature in my own system? > > > > -- > > Weiwei Wang > > Alex Wang > > 王巍巍 > > Room 403, Mengmin Wei Building > > Computer Science Department > > Gulou Campus of Nanjing University > > Nanjing, P.R.China, 210093 > > > > Homepage: http://cs.nju.edu.cn/rl/weiweiwang > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Weiwei Wang Alex Wang 王巍巍 Room 403, Mengmin Wei Building Computer Science Department Gulou Campus of Nanjing University Nanjing, P.R.China, 210093 Homepage: http://cs.nju.edu.cn/rl/weiweiwang