sagarg
sagarg

Reputation: 79

Solr Spellcheck

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

Answers (2)

iNikkz
iNikkz

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

Jad Joubran
Jad Joubran

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

Related Questions