quickwit-oss/tantivy

Create a term proximity scorer

Aperta

#247 aperta il 17 feb 2018

 (7 commenti) (2 reazioni) (0 assegnatari)Rust (978 fork)batch import
enhancementgood first issuehelp wanted

Metriche repository

Star
 (15.972 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor