You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Soubhik (সৌভিক)" <so...@gmail.com> on 2015/07/02 01:12:46 UTC
spellcheck suggestions not sorted correctly
Hi,
I'm using solr 4.6.1 spellcheck component for spelling suggestions. I
configured it to use DirectSolrSpellChecker with default distance function
and the comparator, which, as I understand, means the suggestions are
ranked by Levenshtein edit distance (primary key), followed by document
frequency (secodary key).
however, for the term '*papaer'*, the top suggestion is '*papier'*, which
has far less document frequency than that of *paper*. both the alternatives
are 1 edit distance away from '*papaer'*.
Is this a bug or a quirk of the edit distance algorithm I don't understand?
I've also posted the question on stackoverflow, along with my spellcheck
config:
https://stackoverflow.com/questions/31061644/solr-spellchecks-top-suggestion-is-unexpected
Regards,
--
Soubhik Bhattacharya