Faceted search needs precise retrieval

Set retrieval versus ranked retrieval, and why ranked retrieval lets irrelevant results surface once users filter and re-sort in vertical search, shown with a search for salad dressing.


Written in 2020 while I was Head of Data at Go1, drawing on my time building search quality at SEEK. First published in the Practical AI Coalition publication on Medium. Lightly edited in 2026.

Relevance is subjective. That does not mean lines need not be drawn. In search, there are generally two approaches to bringing back results for a user’s query.

The first, which partitions the entire collection into relevant and irrelevant documents, is known as set retrieval. If the system then orders the relevant documents it returns, the purpose should be to distinguish the more relevant results from the less relevant ones. As Daniel Tunkelang put it in Set retrieval vs. ranked retrieval:

Relevance ranking should help distinguish more relevant results from less relevant results, rather than distinguishing relevant results from irrelevant results.

On the other side of the fence, many search systems today avoid making that hard relevance distinction. Some do so by design, such as the highly tuned web search engines Google and Bing. Others do so unknowingly, as a result of adopting off-the-shelf search solutions without much thought.

This second approach, known as ranked retrieval, is designed to return an ordering of the top documents in a collection for a query. The most relevant results appear first, followed by the less relevant ones. If we are not careful about how “top documents” is defined, irrelevant results can be included in the retrieval.

Set retrieval draws a line between relevant and irrelevant results; ranked retrieval only orders them

In this article, we explore the widely used approach of ranked retrieval and what happens when it is misapplied in vertical search products. Vertical search differs from web search in that it serves a specific segment, media type or topic of online content, such as restaurant reviews, job advertisements or recipes. We look at an e-commerce example to show why set retrieval matters in vertical search, where users interrogate results heavily through filtering, re-sorting and tiering.

When ranked retrieval is the sensible option

There is no other collection of documents like the web. We all know it is very large. More importantly, the structure, content, topic, authorship and quality of webpages vary enormously. Add the ambiguity and the wide variety of intent behind users’ queries, and deciding whether a document is irrelevant to a query becomes mostly impossible.

If someone searches the web for “salad dressing”, what does a relevant document look like? Do we even know whether the person means the grocery item? If so, are they looking for recipes, flavours, the brands and products on the market and their prices, nutrition facts, and so on? And people can also use the phrase “salad dressing” to look for local businesses that make or sell the products.

If a good search experience does not depend on a clear distinction between relevant and irrelevant, there is no need for set retrieval. And if the distinction cannot be made at all, that is an even stronger reason to prefer ranked retrieval over set retrieval. This is exactly the case for web search.

When set retrieval is the preferred approach

Vertical search differs from web search in two ways. First, intent is far less fuzzy and content is more specialised, so users have a less fluid definition of relevance. Unlike on the web, the same two words “salad dressing” typed into an e-commerce grocery site have a very exact intent: the food item. You would be rather disappointed to be shown microwave-safe bento boxes or condiment dispensers when you are clearly expecting the actual dressing.

Second, users are often given, or expect, the ability to interrogate vertical search results. An e-commerce site, for instance, offers brands, colours and price as facets for filtering. This need to cut and re-order the results in different ways works against ranked retrieval, which relies on its default order to push the less relevant, and even irrelevant, results to the bottom. In vertical search systems that let users change this order, the chances of irrelevant results coming to the surface become very high, and that harms the search experience.

If interrogating the results is fundamental to the search experience, the search system has to take a firmer stance on reducing, or eliminating altogether, irrelevant results in the retrieval. The trick of burying potentially irrelevant results in the later pages does not work in these applications.

Ten pages of salad dressing options, or not

Let us look at an e-commerce scenario to see the impact of not drawing a clear line on the relevance of retrieved documents, and how re-sorting and filtering can easily bring irrelevant results to the top in vertical search. The four views below summarise what I saw on one of the largest e-commerce sites in the world.

Four views of the results for a search for salad dressing

I was looking to add some fancy salad dressing to my shopping cart, so I typed “salad dressing” into the search box. The site told me there were over 3,000 options. I was quite amazed, thinking that I would probably not find that many varieties in my local supermarket. Then again, I was browsing the inventory of one of the largest online retailers in the world.

I started looking at the results (view 1). The first few were already quite mixed in relevance: mostly salad dressing shakers, and some actual salad dressing.

The scrutiny aside, I focused back on my task of finding a fancy bottle of salad dressing. I naturally went for the “Sort by” feature and chose “Price: High to Low” (view 2). I was expecting to see the most expensive salad dressings in the inventory, but instead I saw bento boxes, salad tongs and mixing bowls. If the results in the default order were not great, the results re-sorted by price were even worse. The initial results, presumably sorted by relevance, at least had some actual salad dressing. The same could not be said of the price-sorted results.

I thought I had been quite clear with my keywords. Then again, to be fair, these items are loosely related to what I was after.

I paused to think of ways to get the outcome I wanted, and was drawn to the facets on the left. “Silly me,” I thought, “I should have selected the Pantry department” to remove the non-edible items (view 3). This time I got only pantry items, and the number of results fell from over 3,000 to 234, a more realistic number for salad dressing. But the number was still high, and the top results were still a mixed bag. Instead of salad dressing, I got a wide variety of MCT oil products, which I had no idea about. Out of curiosity, I looked it up and learned that MCT stands for medium-chain triglyceride, which is apparently good for your health, but I digress.

I need to watch my weight, I was told

I still had not found what I wanted. Exploring further, I noticed a “Salad Dressings” department in the left panel and clicked on it, hoping to find what I needed this time (view 4). There were only 47 items in the result set at this level. Finally, after all the digging, most of the items at the top were salad dressings, even when sorted by price.

Despite the good relevance of the results by then, I could not help noticing the non-edible item in the top row: a device for measuring body fat, in a search for “salad dressing”.

What went wrong?

Clearly, these encounters with irrelevant products would not have happened if those products had not been returned in the first place. Relevance is subjective, but being shown a body fat measuring device and reusable bento boxes when looking for salad dressing is simply odd.

There are only two possible reasons the unrelated products were returned. The first is that a set retrieval approach was used but was not good at telling relevant from irrelevant. The second is that a ranked retrieval approach was used. My guess is the latter.

A good search experience with ranked retrieval depends on keeping the default relevance order. That order ensures the less relevant, and more importantly the irrelevant, results are buried in the later pages where users are unlikely to reach them. By offering facets such as the department filter, and re-sort options in the interface, we let users disturb that order. That is exactly what happened in the examples above.

All in all, combining faceted search with ranked retrieval can produce a poor search experience. Just because successful web search engines use a certain retrieval approach does not mean it will work for everyone. Web search and vertical search deal with very different content, needs and tasks. Ranked retrieval, which works very well for web search engines, delivers very different outcomes in faceted, vertical search applications. The precision of retrieval also matters when you start tuning the ranking with other signals, which I cover in Precise retrieval for tuning ranking.