Re: autosuggest - in the sense of autocomplete

2009-11-24 Thread Robert Muir
On Mon, Nov 23, 2009 at 12:14 PM, Uwe Schindler wrote: > If you just want to autocomplete the current term the user enters, > initialize a TermEnum with the current entered term fragment. If you then > iterate through the termenum, you get all terms that exist in the index > *after* that term (in

RE: autosuggest - in the sense of autocomplete

2009-11-23 Thread Uwe Schindler
...@thetaphi.de > -Original Message- > From: Anshum [mailto:ansh...@gmail.com] > Sent: Monday, November 23, 2009 6:00 PM > To: java-user@lucene.apache.org > Subject: Re: autosuggest - in the sense of autocomplete > > For auto complete, you could try the following: &g

Re: autosuggest - in the sense of autocomplete

2009-11-23 Thread Anshum
For auto complete, you could try the following: 1. Run a prefix query. [Could be a fuzzy query] 2. Index using something like ngrams. term : sample is indexed as 4 terms, viz: t te ter term -- Anshum Gupta Naukri Labs! http://ai-cafe.blogspot.com The facts expressed here belong to everybody, the