http://lucidworks.lucidimagination.com/display/LWEUG/Spell+Checking+and+Aut omatic+Completion+of+User+Queries
For Auto-Complete, find the following section in the solrconfig.xml file for the collection: <!-- Auto-Complete component --> <searchComponent name="autocomplete" class="solr.SpellCheckComponent"> <lst name="spellchecker"> <str name="name">autocomplete</str> <str name="classname">org.apache.solr.spelling.suggest.Suggester</str> <str name="lookupImpl">org.apache.solr.spelling.suggest.jaspell.JaspellLookup</s tr> <str name="field">autocomplete</str> <str name="buildOnCommit">true</str> <!-- <str name="sourceLocation">american-english</str> --> </lst> On 3/14/11 8:16 PM, "Andy" <angelf...@yahoo.com> wrote: >Can you provide more details? Or a link? > >--- On Mon, 3/14/11, Bill Bell <billnb...@gmail.com> wrote: > >> See how Lucid Enterprise does it... A >> bit differently. >> >> On 3/14/11 12:14 AM, "Kai Schlamp" <kai.schl...@googlemail.com> >> wrote: >> >> >Hi. >> > >> >There seems to be several options for implementing an >> >autocomplete/autosuggestions feature with Solr. I am >> trying to >> >summarize those possibilities together with their >> advantages and >> >disadvantages. It would be really nice to read some of >> your opinions. >> > >> >* Using N-Gram filter + text field query >> >+ available in stable 1.4.x >> >+ results can be boosted >> >+ sorted by best matches >> >- may return duplicate results >> > >> >* Facets >> >+ available in stable 1.4.x >> >+ no duplicate entries >> >- sorted by count >> >- may need an extra N-Gram field for infix queries >> > >> >* Terms >> >+ available in stable 1.4.x >> >+ infix query by using regex in 3.x >> >- only prefix query in 1.4.x >> >- regexp may be slow (just a guess) >> > >> >* Suggestions >> >? Did not try that yet. Does it allow infix queries? >> > >> >* Field Collapsing >> >+ no duplications >> >- only available in 4.x branch >> >? Does it work together with highlighting? That would >> be a big plus. >> > >> >What are your experiences regarding >> autocomplete/autosuggestion with >> >Solr? Any additions, suggestions or corrections? What >> do you prefer? >> > >> >Kai >> >> >> > > >