[ http://issues.apache.org/jira/browse/SOLR-81?page=comments#action_12458072 ] Ogün Bilge commented on SOLR-81: --------------------------------
Yes exactly as you described. The Fieldnames for the gram fields have to be like this to make it work with SpellChecker: <copyField source="word" dest="start1"/> <copyField source="word" dest="end1"/> <copyField source="word" dest="start2"/> <copyField source="word" dest="end2"/> <copyField source="word" dest="start3"/> <copyField source="word" dest="end3"/> <copyField source="word" dest="start4"/> <copyField source="word" dest="end4"/> <copyField source="word" dest="gram1"/> <copyField source="word" dest="gram2"/> <copyField source="word" dest="gram3"/> <copyField source="word" dest="gram4"/> A NGramAnalyzer is enough, i used a WhiteSpacetokenizer as Tokenizer, some other filters and finally the NGramAnaylzer Unfortunately the SpellChecker implementation has a beta state imho. It is not possible to set your own boost factors for the start or end grams. In the current release it is set to start-gram factor 2 , end-gram factor 1 > Add Query Spellchecker functionality > ------------------------------------ > > Key: SOLR-81 > URL: http://issues.apache.org/jira/browse/SOLR-81 > Project: Solr > Issue Type: New Feature > Components: search > Reporter: Otis Gospodnetic > Priority: Minor > > Use the simple approach of n-gramming outside of Solr and indexing n-gram > documents. For example: > <doc> > <field name="word">lettuce</field> > <field name="start3">let</field> > <field name="gram3">let ett ttu tuc uce</field> > <field name="end3">uce</field> > <field name="start4">lett</field> > <field name="gram4">lett ettu ttuc tuce</field> > <field name="end4">tuce</field> > </doc> > See: > http://www.mail-archive.com/solr-user@lucene.apache.org/msg01254.html > Java clients: SOLR-20 (add delete commit optimize), SOLR-30 (search) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira