lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tao, Jing" <j...@webmd.net>
Subject spellchecker returns correctlySpelled=true if one term in phrase is correctly spelled
Date Tue, 02 Dec 2014 16:10:02 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message