This came up the other day, too, see http://lucene.markmail.org/message/cnrrkw3d35wqxhzz?q=How+to+tokenize/analyze+docs+for+the+spellchecker
.
I think we could add this to the Lucene spellchecker, or at least to
the SpellCheckComponent. rameshgalla, care to write up your code as a
patch?
Of course, then the question becomes would you want collated to go and
check the various permutations until you come up with one that has hits?
An alternative approach would be to add a component that transforms
the query into what I call a backoff query, i.e. it converts AND to OR
-Grant
On Oct 13, 2008, at 1:25 AM, rameshgalla wrote:
Hi,
I don't know there is better solution for this one. But I resolved
this
problem in my application like this.
After getting the spell suggestion I have performed the search
operation
without displaying the results.
If the numdocs is greater than or equal to one only I have displayed
the
spellcheck result. Otherwise don't display the spell check value.
--
View this message in context:
http://www.nabble.com/Question-about-solr-spellcheck-tp19943116p19949041.html
Sent from the Solr - User mailing list archive at Nabble.com.
--------------------------
Grant Ingersoll
Lucene Boot Camp Training Nov. 3-4, 2008, ApacheCon US New Orleans.
http://www.lucenebootcamp.com
Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ