[ http://issues.apache.org/jira/browse/SOLR-81?page=comments#action_12457871 ] Ogün Bilge commented on SOLR-81: --------------------------------
I have created a NGramFilter for generating those gram fields based on the "word" field It is configurable with the schema.xml file simply by generating fieldtypes and using the copyField directive. The generated documents can be used with the Lucene spellchecker extension to fetch a suggest word. Unfortunately i have made this extension during my working hours and so i can't apply the asf license on it, but if you have question please ask. > 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