From keyword matching and hand-tuned lists to a measured, testable search — what we found, what we built, what I got wrong.
Role: Product owner · Scope: retrieval, ranking and presentation · Period: July–September 2026 · Status: built and verified, shipping
The short version
Search matched keywords and sorted by popularity. Everyone saw the same list, the catalogue’s own shape worked against it, and when results were wrong the only lever available was to hand-tune a keyword.
Over two months that lever was pulled nine times. Measured properly — against keywords nobody had touched, over the same days — most of those changes did nothing, one was a clear win, and one had been quietly losing orders for a month. Hand-tuning also only ever reaches keywords someone thought to tune, which was well under two-thirds of search volume. The rest converted at a fraction of the rate and had no list to tune.
So I rebuilt the logic rather than the lists. The new engine retrieves on meaning as well as words, repairs misspellings before searching, orders results by asking relevance, then history, then demand in sequence, and then does the thing a better sort cannot do — makes the answer short enough to read.
1. What was wrong
It matched words, not meaning
The index matched literal tokens in a query against service titles, categories and hand-maintained tags. A customer’s words rarely equal a catalogue’s words. “Hair removal” should find waxing; “facial for glow” should find brightening facials. Keyword matching misses both unless somebody tagged every synonym by hand.
Lexical matching is also binary — a service either contains the token or it does not — so a near-miss and a total miss rank identically. The cost showed up in the app’s own no-result log, and not on obscure requests: the queries returning an empty screen most often were the biggest services in the catalogue.
Everyone saw the same list
Ordering was driven by static popularity and manual boosts. A first-time visitor and a customer who had booked the same category ten times received identical results for the same query. The single most reliable signal we held about a returning customer — what she had already paid for — went unused at the exact moment she was choosing.
The catalogue’s shape worked against it
- Variant explosion. A single common query matched well over a hundred services, and the top of that list was a run of near-identical combinations differing only by wax type. A shopper scrolling that is not choosing, she is disambiguating.
- Duplicate listings. The same service existed on several floors — at-home, instant, premium — with different ids and sometimes different prices. Printed as separate rows, they read as a bug.
2. Why hand-tuning was not the answer
Nine iterations had been shipped against specific keywords over about five weeks. The existing log reported them as a success. They were not, and the way the measurement went wrong is worth recording, because it is the kind of mistake that will happen again.
The log measured a bug fix, not the work
The log compared a window before the changes against a window after. In between, an event-attribution fix had shipped, which changed how add-to-cart was counted. Measured add-to-cart jumped for every keyword at once — whether or not that keyword had been touched.
The log’s own numbers gave it away. The two biggest gains belonged to keywords that had never been optimised at all. Averaged out, the never-tuned keywords gained more than twice as much as the worked-on ones.
The fix was two changes. Measure search-to-pay rather than add-to-cart, because a payment is a payment and the event fix did not touch it. And use the never-tuned keywords as a control group, so “what this iteration did” becomes “what it did beyond what the platform did anyway over the same days”.
Re-measured that way, the picture inverted. Most of the iterations sat inside ordinary daily noise. One — a child-level reordering — was a real and repeatable gain. One had been live for weeks and was costing orders every day, on a keyword whose ordering had already been among the best on the platform.
The structural problem underneath
Two keywords with identical structure, one carefully ordered and one never touched, converted at wildly different rates — a gap too large to explain by buyer intent alone. That is a finding about search, not about shoppers.
Hand-tuning had reached a few dozen query strings. The long tail contained hundreds more with serious volume behind them, none of which had ever been touched, and none of which a list-editing approach could ever reach.
3. What we built
Eight stages, in a fixed order. Each either narrows what is eligible or decides an order within it. Nothing is scored and nothing is weighted, so any two results can be explained by naming the one question that separated them.
- 0 — Suggestions. Five queries that each return something, before she finishes typing.
- 1 — Spelling correction. “fadial” finds Facial; “waz” reaches the waxing hall.
- 2 — The lift. Narrows the catalogue to the hall the query names, before ranking.
- 3 — Hybrid retrieval. Lexical and vector, fused — her words when they are not our words.
- 4 — Relevance bands. Five bands, so a meaning-only match can never outrank a word match.
- 5 — Scope. “Legs waxing” leads with legs-only services, not three-part combinations.
- 6 — Cascading sort. Relevance, then her history, then demand — asked in sequence.
- 7 — Presentation. Filter rows, one row per service, and parent cards that collapse a whole range.
Two decisions carry most of the weight
Relevance is a floor, not a weight. Demand is asked fifth and seventh, so it can only ever separate services that already tied on relevance and on her history. The business cannot push a result above a better match — it is structurally impossible rather than capped by a rule somebody could later raise.
Filters are applied after the sort. A filtered list is always a subsequence of the unfiltered one, which is why chips and parent cards could be added without touching retrieval and without being able to undo any guarantee the sort makes.
4. What changed on screen
A sort alone would not have fixed this. The second half of the work was making the answer short enough to read.
Before, the most common waxing query opened on four near-identical combinations that differed only by wax type. After, duplicate listings collapse to one row per service, variants cluster, and six wax ranges group into single cards — so the list leads with what people actually buy and then ends.
For a returning customer the same query now leads with the brand she has booked before, and each card says why it is there. A first-time visitor sees the same cards ordered by demand, and nothing personalised at all.
Every query that had previously returned an empty screen was replayed through the new engine. Just under 95% of that volume now returns results. The remainder are correctly empty — they are not services.
5. What I got wrong
Three claims were made during this work and later withdrawn. They are here because each failed in a way that is easy to repeat, and because a case study that reports only the findings that survived is not much use to the next person.
“The rollout proved it”
An early reading of the iterations showed a large gain. It had no control group. Once the never-tuned keywords were used as one, the tuned keywords had gone backwards while the untouched ones rose. The gain was the platform, not the work.
“A 0.93 correlation, so findability pays twice”
A strong relationship between findability and conversion suggested a large multiplier. It was a composition effect. With keyword controls only, the coefficient was convincing and the t-statistic was above 20. Adding user-type controls took it to roughly zero. A drop-one-keyword robustness check held steady throughout — which is the actual lesson: a coefficient can be robust and still be measuring the wrong thing.
Tests that passed against data the product no longer used
When ranking moved onto real order data, every check passed immediately. That was the warning sign, not the reassurance. The test harness had stubbed out the browser, so the engine silently fell back to older numbers and over a hundred checks were passing against data the prototype had stopped using. The harness now feeds the real data, and separate checks cover the data itself.
What the three have in common: each was a number that confirmed what I wanted, arrived at without an obvious way to be wrong. The habits that caught them are cheap — always have a control group, always ask what else changed in the window, and treat an immediate green test run on new data as suspicious rather than satisfying.
6. How it was done
Roughly two months end to end, and about five weeks from the first working prototype to a verified build. The engine is covered by 242 headless checks that lift it out of the shipped file, so a check cannot pass against code that is not in the artifact.
I owned the roadmap, defined the ranking logic, and ran the delivery sprints with engineering.
7. What I would do differently
- Establish the control group before the first change ships, not after nine of them. The measurement design is cheaper at the start than the re-analysis is at the end.
- Instrument the search term itself from day one. A great deal of this work was reconstructing demand that should simply have been recorded.
- Treat an immediate pass on a new data source as a red flag and go looking for the stub.