Enterprise Search Relevance Tuning: Scoring and Feedback
Summary: A working search index and a relevant one are different products. Tuning is the discipline of changing one scoring input at a time, measuring offline first, then confirming online. This walks the sequence: BM25 parameters, field weights, popularity signals, and a click-based judgment list that survives position bias.
Key Takeaways
- Defaults are generic on purpose. BM25 with k1 = 1.2 and b = 0.75 is a reasonable baseline, not a tuned configuration for your catalogue or knowledge base.
- Change one input, re-measure. Field weights plus a logged popularity boost took Precision@5 to 0.74 — a marginal but defensible gain.
- Confirm online before rollout. The same change ran as a 50/50 A/B test for 2 weeks: CTR +8%, conversion +5%, revenue per search +6%.
- Unified ranking beats manual channel fusion. Offline NDCG@8 moved from 0.6620 to 0.7169 when heuristic channel weighting was replaced by one learned objective.
- Raw clicks are biased; grade them. COEC normalises clicks against position expectations, so a score of 1.0 means "performed exactly as expected."
There is an organisational reason it stays unfixed, too. Search sits between infrastructure and product: no single team owns the ranking quality, so every boost is somebody's side project, and nobody has a number they are willing to defend. Making relevance a tracked metric with an owner is usually worth more than any single scoring change.
I. Why relevance tuning fails quietly
Most search deployments ship an index, not a ranked experience. The index returns results; relevance determines whether those results are the ones the user wanted. The gap stays invisible because a mediocre ranker still returns ten rows, and the failure shows up as low click-through and reformulation rather than as an error.
Four signals are missing in an untuned deployment, and none of them arrive by default:
- A title match on a short product name should outrank a body mention inside a long review.
- A recently published document should beat a stale one with slightly higher term frequency.
- A document ten thousand users clicked should beat an equally scored document with no engagement.
- A rating field that decides qualification should weigh more than a marketing adjective.
Each of those is a boost you have to add, and each one has to be measured. A boost applied without measurement is superstition with a deployment pipeline.
A note on field weights before the table: in a catalogue, the title, the attribute block and the body carry different evidence. A title match on a five-word product name is a stronger signal than a body mention inside a five-thousand-word review, and the default BM25 field treatment does not know that until you tell it.
Stuck on which site-search engine to pick, or on flat results?
See search and recommendationII. The scoring sequence, and what each step buys
| Step | Change | Offline signal | Online signal |
|---|---|---|---|
| 1 | Field weights (title, attributes over body) | Precision@5 rises | CTR |
| 2 | Popularity boost via log1p field factor at 0.3 | Precision@5 0.74 | CTR, conversion |
| 3 | Unified ranking replaces manual channel weights | NDCG@8 0.6620 → 0.7169 | ATC +1.21%, conversion +1.28% |
| 4 | Add query-item engagement features | NDCG@8 0.7169 → 0.7799 | CTR +1.52%, conversion +2.38% |
| 5 | Conversion-weighted labels | NDCG@8 0.7799 → 0.7994 | conversion up again |
The sequence matters more than any single row. Steps 1 and 2 are cheap, reversible, and teach you whether your judgment set is sane. Steps 3 to 5 require a learned model and a training pipeline, and they will not rescue a judgment set that was built carelessly.
Note the popularity step specifically: a field_value_factor with log1p and a factor of 0.3 lifts proven best-sellers without overriding textual relevance. The factor is the whole argument — at 1.0 or above, popularity starts to win over the query, and the ranker degenerates into "show the same top sellers for everything."
It is also worth saying what "offline" buys you and what it cannot. An offline judgment set tells you whether a change moved ranking in the direction you intended, cheaply and repeatably. It cannot tell you whether users prefer the new order, because it was built from judgements about documents, not about behaviour. That is why the online layer is not optional.
One structural detail that saves a lot of time later: store the judgment list as data, keyed by query and document, with the rater and the date. When someone asks next quarter why a document ranks third, you can answer from the table instead of from memory.
III. Building a judgment list you can trust
- Sample queries by value, not by volume. Top revenue queries, zero-result queries, and queries with high reformulation rates. Thirty per bucket is enough to start.
- Grade against position expectations. Use clicks over expected clicks: compute CTR per position as a baseline, then divide actual clicks by expected clicks for each document.
- Read the grades literally. 1.0 means the document performed exactly as expected given where it appeared; above 1.0 it beat its positions; below 1.0 it underperformed.
- Hold out a test slice. Train the model on one period, evaluate on a later one. Same-period evaluation inflates every result.
- Re-grade quarterly. Catalogue changes and seasonality shift what "relevant" means; a stale judgment list quietly optimises for last year.
- Keep the click logs privacy-scoped. Query text and click events carry user information — define retention windows and restrict feature access to the ranking service.
The position-bias correction is the part teams skip. Raw click counts systematically reward whatever already ranks first, so a model trained on them learns to reproduce the current order — and the offline metric improves while nothing actually changes for the user.
A second warning on judgment lists: relevance labels are ordinal, not absolute. A document graded three is not three times as relevant as one graded one, and treating the grades as a continuous target produces a model that optimises a number nobody cares about. Keep the graded scale, keep the holdout, and keep the human in the loop.
IV. The experiment layer
Offline metrics decide what to try; online metrics decide what to ship. What we hold to in practice:
- One change per experiment. Two boosts at once and a mixed result leaves you unable to attribute it.
- Fifty-fifty split, at least 2 weeks. Shorter windows catch weekday patterns and miss the weekly cycle.
- Four online metrics, not one. CTR, add-to-cart or RFQ rate, conversion, and revenue per search. In the published sequence all four moved together — +8% CTR, +5% conversion, +6% revenue per search — which is what makes a rollout defensible.
- Segment by query type. Navigational queries should barely move; if they do, your change is probably harming precision somewhere.
- Watch the tail. A ranker tuned on head queries often degrades long-tail results, and the aggregate hides it.
One more practical guard: keep experiment traffic out of the training data until quality checks pass, or the next model learns from its own noise.
We also separate tuning from configuration hygiene. Boosts multiply, stale boosts never get removed, and after two years a ranker can carry a dozen factors nobody can justify. Quarterly pruning is part of the discipline, not an afterthought.
V. Boundaries: what tuning cannot fix
An empty index. Relevance tuning cannot rank documents you never ingested; fix coverage first.
Broken query understanding. If the parser drops the modifier, no boost recovers the intent. Tune understanding before tuning ranking.
Attribute gaps. A filter that cannot see a field cannot rank by it. In catalogues, this is usually the largest single cause of "search is bad."
A judgment set built by one person. Single-rater judgments encode one opinion; use at least two raters on a sample and measure agreement.
Over-fitted boosts. Twenty boosts tuned on thirty queries will look excellent offline and behave erratically in production.
Position bias left uncorrected. The model learns the current order and reports improvement while users see the same page.
FAQ
Q: What is enterprise search relevance tuning?
A: The measured process of changing scoring inputs — BM25 parameters, field weights, popularity, learned ranking — and validating each change offline and online.
Q: What are good BM25 starting parameters?
A: k1 = 1.2 and b = 0.75 are a reasonable generic baseline; both should be revisited for short-title catalogues and long documents.
Q: How do I know a change helped?
A: Offline Precision@5 or NDCG@8 first, then a 50/50 A/B test of at least 2 weeks on CTR, conversion and revenue per search.
Q: What is position bias and why does it matter?
A: Users click higher results regardless of relevance; correcting with clicks over expected clicks turns a biased count into a usable grade.
Q: Do I need a learned model?
A: Not at first. Field weights plus a calibrated popularity factor typically recover most of the gap; learned ranking matters once you have a trustworthy judgment list.
About Tengence
Tengence Search is an enterprise site search and retrieval platform: query understanding, hybrid retrieval, tunable ranking and an evaluation workflow in one stack, positioned as an alternative to Algolia and Typesense for teams that want to own their relevance model. Tengence GEO handles external visibility across AI engines.
Related Reading
- Search relevance ranking optimization
- Enterprise knowledge base search
- Site search optimization: five keys
Data Sources
- "Search Relevance Tuning" (Backend Engineering Essentials) — BM25 k1 1.2 and b 0.75 defaults; popularity field_value_factor log1p at 0.3; Precision@5 0.74; 50/50 A/B for 2 weeks with CTR +8%, conversion +5%, revenue per search +6%.
- "Unified Learning-to-Rank for Multi-Channel Retrieval in Large-Scale E-Commerce Search" (arXiv 2602.23530) — NDCG@8 0.6620 to 0.7169 to 0.7799 to 0.7994; ATC +1.21% and +2.72%, conversion +1.28% and +2.38%, CTR +0.26% and +1.52%.
- Elastic, "LTR model training with judgment lists from user behavior data" — COEC grading: 1.0 equals expected performance given position, above 1.0 outperforms, below 1.0 underperforms.
A final note on sequencing for a team starting from zero: spend the first two weeks only on measurement — judgment set, dashboards, experiment plumbing — before touching a single boost. Teams that start with boosts and add measurement later almost always end up unable to say which change helped, and revert the whole batch when a number drops.