#563·tantivy

根据距离对模糊术语进行评分

作者: buster创建于 2019年6月10日更新于 2026年7月14日
标签enhancementhigh priority

When playing around with tantivy, I came up with a query including multiple fuzzy term queries. Unfortunately, the results don't make much sense (e.g. imagine a text field "the quick brown fox" and some other completely different text fields, and then do a boolean query with multiple fuzzy terms. The results are completely unusable, because even an exact search term results in some completely different term scored the same). I think it comes down to this: The single fuzzy term query doesn't make a difference between exact matches or some levenshtein distance. The test should find the second added document first (with a higher score), but doesn't.

内容来源: quickwit-oss/tantivy