quickwit-oss/tantivy

Create a term proximity scorer

Open

#247 建立於 2018年2月17日

在 GitHub 查看
 (7 留言) (2 反應) (0 負責人)Rust (8,354 star) (499 fork)batch import
enhancementgood first issuehelp wanted

描述

Michael Jackson should get a better score if the two terms appear close to each other in the same document.

It would be nice to have a query that computes something equivalent to

"Michael Jackson"^3 OR (Michael AND jackson)

Conceptually it would just look like the phrasequery, except that the part that checks whether the phrase is present would only affect the score of the document.

貢獻者指南