lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dyer, James" <>
Subject RE: Context-Sensitive Spelling Suggestions & Collations
Date Thu, 01 Sep 2011 19:16:21 GMT
The changes to DirectSpellChecker are included in SOLR-2585 patch, which I sync'ed to the current
Trunk today.  So all you have to do is apply the patch, build and then add the 1-2 new parameters
to your query:

- spellcheck.alternativeTermCount - the # of suggestions you want to generate on terms that
were found in the index (set greater to 0).

- spellcheck.maxResultsForSuggest - the max # of query results to disable spellingcheck (normally
you'd want 0 for regular spellchecking and something >0 to generate "did you mean" suggestions)
... 0 is the default.

If you do try this patch out, please let us know how it works out and also any suggestions
you have for improving it.  Solr's current inability to consider fixes for words appearing
in the index is to me a significant functionality gap.  I would love to see something like
this eventually added to the product so any feedback you can give is appreciated.  Thanks.

James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311

-----Original Message-----
From: O. Klein [] 
Sent: Tuesday, August 30, 2011 8:45 AM
Subject: Context-Sensitive Spelling Suggestions & Collations

Using the DirectSolrSpellChecker im very interested in this.

According to some changes
need to be made to DirectSolrSpellChecker.

Does anybody know how to get this working?

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message