🎮 Search Scoring — Learn by Doing
Odyssey ranks vehicles with Atlas Search by combining small scoring clauses. Reading about them is one thing — playing with them is how it clicks. Below is a live playground: move the sliders, flip the toggles, and watch the score change. Then test yourself with the quiz at the bottom.
#How scoring works (the 30-second version)
A search result's final rank is a sum of clause scores. Each sortType (RECOMMENDED, SHIPPING_FEE_LOWEST, HIGH_PRICE_NEW_CAR, …) is just a different recipe of clauses with different weights. The clauses fall into two families:
- Match clauses decide whether a vehicle qualifies for a score:
equals,range,exists,text. - Score shapers decide how much it scores:
Gaussdecay,near,boost,constant, andfunctionexpressions.
A compound clause glues them together — its should list adds the pieces up.
#The clauses, hands-on
Use the tabs below. Each one mirrors a real block from the production score-weights config (the same JSON you can open under Search Score Weights).
- 🔔 Gauss decay — smooth "closer is better" curve (used for shipping fee).
- 🎯 near — proximity reward with a half-score
pivot(newest year, lowest mileage). - ✅ exists — reward vehicles that have a field (free-shipping flag, 360° spin).
- 📏 range — keep only values inside a
[min, max]window. - 🟰 equals — exact match; splits NEW vs USED scoring lanes.
- ⬆️ boost / constant — multiply relevance vs assign a fixed score.
- 🧩 compound — combine clauses;
shouldscores add up. - 🧮 function score — compute a score from a field via an expression.