how to configure solr / lucene to perform levenshtein edit distance searching? - Stack Overflow
how to configure SOLR to perform levensthein / jaro-winkler / n-gram searches with scores returned and without doing additional stuff like tf, idf, boost and so included?
You've got some solutions of how to obtain the desired results but none actually answeres your question.
q={!func}strdist("webspace",term,edit)
will overwrite the default document scoring with the Levenstein distance and q={!func}strdist("webspace",term,jw)
does the same for Jaro-Winkler.
The sorting suggested above will work fine in most cases but it doesn't change the scoring function, it just sorts the results obtained with the scoring method you want to avoid. This might lead to different results and the order of the groups might not be the same.
To see which ones would fit best a &debugQuery=true
might be enough.
Read full article from how to configure solr / lucene to perform levenshtein edit distance searching? - Stack Overflow
No comments:
Post a Comment