سؤال

Anyone know if there is any Edit Distance similarity implementation, like Levenshtein in Lucene/Solr? Thanks

هل كانت مفيدة؟

المحلول

Yes, fuzzy queries and fuzzy term enumeration use Levenshtein edit distance.

نصائح أخرى

Solr has both Levenstein and Jaro-Winkler as query functions, which means you can sort on them, add them to the returned documents or use them to compute the document score http://wiki.apache.org/solr/FunctionQuery#strdist

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top