Weighting a Title Match and a Body Match
Search scoring can give fields different influence when they provide different evidence of relevance.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace two articles
A term in a title can identify the main topic, while a single mention in a long article may be contextual. A ranker can use different contributions for the upper and body fields. See documents and queries.
Test a counterexample
A page with a terse title and a complete relevant explanation should still be discoverable. Compare rankings on exact and broad queries. Testable examples give a way to distinguish variants.[1]
Compare scores and keep the rule inspectable
In a toy rule, each matching query term in the title contributes three and each body term contributes one, counted at most once per field. A title match for two terms scores six, while two body-only matches score two. See term frequency and document frequency.
Query terms rail and map
A: both in title → 6
B: both only in body → 2
C: one in title and other in body → 4
Use a counterexample to evaluate heavy weighting
An irrelevant title can contain one broad term and outrank a precise description. Compare weights on judged queries before committing to the rule. Test repeated terms and ties.