[ http://issues.apache.org/jira/browse/SOLR-81?page=comments#action_12460397 ] Erik Hatcher commented on SOLR-81: ----------------------------------
The way the spell checker works is to have a separate spell checking index. This could be integrated into Solr with a custom cache that builds the dictionary index into a RAMDirectory. I've done this in Collex for AJAX suggestions. Will it scale? I'm not sure, but I suspect for many Solr installations it'd fit into RAM just fine. Tie in a custom request handler (and underlying Util class like highlighting, etc) and you're all set! :) What have I overlooked or oversimplified? > 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 > Attachments: SOLR-81-ngram.patch > > > 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