[ https://issues.apache.org/jira/browse/SOLR-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man updated SOLR-81: ------------------------- Attachment: hoss.spell.patch patch makes a few changes, if there are no objections i'll try to commit this on monday.... * fixed NPE if no q param (when using cmd) * fixed schema.xml to know about "words" field in spellchecker.xml * cmd=rebuild needs to be disabled if termSourceField is null * added "cmd=reopen" for people maintaining the spell index externally. * added support for ramDir based spell index. * can't do relative path to dataDir, because we can't getdataDir, because SolrCore isn't done initializing yet. * added more explanation to solrconfig.xml about meaning of params, and changed the default values to work for anyone (using ramdir) * I punted on the issue of field type encoding by making it clear in the solrconfig.xml comments that termSourceField needs to use a simple field type Remaining issues... * should we add a firstSearcher or newSearcher hook to rebuild in the example solrconfig.xml ? * i don't have an optinion about passing an IndexReader to suggestSimilar, if we want to do that it shouldn't be a static reader, it should come from the current request ... in the meantime i changed the name of the current one to "nullReader" so it's clear what it is. * the indenting is currently a hodgepodge of 2spaces vs 4 spaces ... i'll fix after commiting (trying to keep the patch easy to read for now) > Add Query Spellchecker functionality > ------------------------------------ > > Key: SOLR-81 > URL: https://issues.apache.org/jira/browse/SOLR-81 > Project: Solr > Issue Type: New Feature > Components: search > Reporter: Otis Gospodnetic > Priority: Minor > Attachments: hoss.spell.patch, SOLR-81-edgengram-ngram.patch, > SOLR-81-ngram-schema.patch, SOLR-81-ngram.patch, SOLR-81-ngram.patch, > SOLR-81-ngram.patch, SOLR-81-ngram.patch, SOLR-81-spellchecker.patch, > SOLR-81-spellchecker.patch, SOLR-81-spellchecker.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. - You can reply to this email to add a comment to the issue online.