Files
tantivy/src/query
palmoni5andKleiKodesh df47456ca8 Export PhraseScorer from tantivy::query (#3210)
* Export PhraseScorer from tantivy::query

PhraseScorer already has a public constructor and the Postings trait is public, but the type was only reachable inside the crate. Exporting it lets a custom Query/Weight score a phrase over any Postings, for example a union of several terms at one position, without copying the phrase matching code.

Also documents the struct, the constructor and phrase_count.

* Document that PhraseScorer::new needs two postings

Intersection::new asserts at least two docsets, so a custom Weight whose phrase degenerates to one term must branch before building the scorer.

---------

Co-authored-by: KleiKodesh <211884665+KleiKodesh@users.noreply.github.com>
2026-10-26 10:02:12 +01:00
..
2023-03-21 06:57:44 +01:00
2026-01-30 17:06:41 +01:00
2025-12-01 15:38:57 +01:00
2026-01-23 18:44:10 +01:00
2025-10-13 16:25:49 +02:00
2026-01-23 18:44:10 +01:00