Personalizing the Search Results Page: Ranking by Who Is Searching
Two shoppers type the same query and mean different things. One wants the cheapest. One wants the one they bought last time. A search page that ranks both queries the same way is not neutral. It is just wrong for one of them.
Rank search results by the shopper's history, not just the query's keywords: returning buyers see their brands and variants first, new visitors see bestsellers and social proof, and bargain hunters see the value tier. The query sets the candidates. The shopper sets the order.
The query sets the candidates, not the order
Most stores treat search ranking as a property of the query: the same words, the same order, for everyone. That is a defensible default and a bad experience, because the query is only half the question. The other half is who is asking.
A returning buyer who types a product name usually wants the variant they own, the refill, or the next size up. A new visitor typing the same words wants the bestseller, the one with the reviews, the one the store is confident about. A bargain hunter wants the value tier first, even if the margin is thinner. Same query, three different right answers, and the ranking that serves all three serves none of them.
What changes, and what must not
The safe personalization is re-ranking, not re-filtering. The candidate set stays the same, so no shopper ever sees a product hidden from them because of who they are. What changes is the order: the returning buyer's brand first, the new visitor's bestseller first, the bargain hunter's value pick first.
The signals are the ones the store already owns. Purchase history, not browsing history, because a purchase is a commitment and a browse is a glance. Brand affinity from past orders. Price tier from past orders. Variant history: the size, the color, the configuration they actually bought. These are first-party facts, and they are more reliable than any inferred preference.
What must not change is the ability to find the thing. A shopper who searches for a part number wants that part, in that order, and personalization that buries the exact match under a recommendation has failed the search to serve the segment. Exact matches stay pinned. Personalization ranks the rest.
The failure mode to watch for
The failure is the filter bubble in miniature. A shopper who only ever sees their own brand never discovers the better product, and the store never learns what they would have bought. Keep one slot in the results for the outsider: the bestseller outside the shopper's history, the new arrival, the product the merchandisers want to push. Diversity in the results is not a compromise with personalization. It is the part that keeps personalization honest.
The other failure is flicker: the page that loads one ranking and then swaps it when the personalization data arrives. The shopper sees the product, reaches for it, and watches it move. Personalize server-side or not at all. A results page that changes after the shopper sees it is worse than a generic one.
The check you can run tomorrow
Pick your ten most common search queries and look at the top three results for each, as a new visitor and as a returning buyer. If the two views are identical, your search is not personalized, and your best customers are getting the stranger's results.
Change one query first. Take the query with the highest volume and the clearest split in buyer intent, re-rank the top ten for returning buyers by their purchase history, and measure conversion per search, not click-through. A click on a re-ranked result is a guess. A purchase is the ranking working.
Keep reading
Related guides on this site: search personalization and buyer intent personalization for search vs browse shoppers recommendation diversity and catalog coverage More from AI personalization for e-commerce.
Frequently asked questions
Should personalization change which products appear in search?
No. Re-rank the candidates, do not re-filter them. Every shopper should be able to find every product, and personalization should change the order, not the set.
What signals should drive search personalization?
Purchase history first: brand affinity, price tier, and variant history from past orders. Browsing history is weaker, because a browse is a glance and a purchase is a commitment.
Does personalizing search hurt discovery?
It can, if the shopper only ever sees their own history. Keep one slot for the outsider: the bestseller outside their history, the new arrival, or the merchandisers' pick.
What about exact-match searches?
Exact matches stay pinned. A shopper searching for a part number wants that part, and personalization that buries it under a recommendation has failed the search.