Hi,

It seems that when I do a phrase search, SOLR's spellchecker would return 
correctlySpelled=true if at least one term in the phrase was correctly spelled.
For example:
If I search for "soriasis treatment", SOLR returns over 8000 search results for 
"treatment", correctlySpelled: true, and a spelling suggestion of "psoriasis" 
for "soriasis".
If I search for "soriasis treatment", SOLR returns 0 results, 
correctlySpelled:false, and spelling suggestings for both "soriasis" and 
"treatmnt".

Does this mean if I want to display a "Did You Mean" for "soriasis treatment", 
I need to

1)      Check if there are any suggestions returned by spellchecker for any of 
the terms, and

2)      Compare the number of hits for each collation with the numFound for 
original query?

Another spellchecker question I have is how can I configure SOLR to suggest 
"heart attack" if someone searches for "heart attach"?  Technically, there are 
no misspellings, but "heart attach" as a phrase does not make sense.

Thanks,
Jing

Reply via email to