We base the auto-suggest on popular searches. Our site logs the search terms in a database and a simple query can give us a summary counting the number of times the search was entered and the number of results it returned, similar to the criteria used in the lucid imagination article you cite. Each record includes the search terms, the total number of times it was entered and the maximum number of hits returned. Each record is fed in as a document. On a regular interval, older documents are deleted and newer ones are added.
On Thu, Jun 17, 2010 at 12:29 PM, Blargy <zman...@hotmail.com> wrote: > > Thanks for the reply Michael. Ill definitely try that out and let you know > how it goes. Your solution sounds similar to the one I've read here: > http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/ > > There are some good comments in there too. > > I think I am having the biggest trouble distinguishing what needs to be done > for autocomplete/autosuggestion (google like behavior) and a separate issue > involving spellchecking (Did you mean...). I guess I originally thought > those 2 distinct features would involve the same solution but it appears > that they are completely different. Your solution sounds like its works best > for autocomplete and I will be using it for that exact purpose ;) One > question though... how do you handle more popular words/documents over > others? > > Now my next question is, how would I get spellchecker to work with phrases. > So if I typed "vitton" it would come back with something like: "Did you > mean: 'Louis Vuitton'?" Will this also require a combination of ngrams and > shingles? > > Thanks > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Autsuggest-autocomplete-spellcheck-phrases-tp902951p903225.html > Sent from the Solr - User mailing list archive at Nabble.com. >