Reputation: 79
Solr spellcheck not working for some phrase queries having "stopwords". e.g. "stopword to solr" if you remove 'to' then it suggest spellings for solr as solar. Can anyone tell what is problem?
Upvotes: 1
Views: 462
Reputation: 3829
Before Indexing. Do 2 things : i) You have to remove/comment Stopfilterfactory from both index and query in analyzer.
ii) Don't use KeywordTokenizerFactory because it takes terms as a whole string. Use StandardTokenizerFactory.
Try it out.
Upvotes: 5
Reputation: 2579
It depends on the documents already indexed. Most probably you don't already have SOLR indexed, or its frequency is relatively low compared SOLAR.
Try enabling spellcheck.extendedResults=true so you can see the frequency
Upvotes: 0