Edit Distance Similarity in Lucene/Solr

╄→гoц情女王★ 提交于 2019-12-11 06:04:09

问题


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


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/21607413/edit-distance-similarity-in-lucene-solr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!