quickwit-oss/tantivy

Create a term proximity scorer

Open

#247 opened on Feb 17, 2018

View on GitHub
 (7 comments) (2 reactions) (0 assignees)Rust (8,354 stars) (499 forks)batch import
enhancementgood first issuehelp wanted

Description

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.

Contributor guide