Last updated: Oct 31 2016

Area: Episerver Find Applies to versions: 12 and higher
Other versions:

Related Queries

You can use related queries to help visitors find relevant content based on current search query. For example, if someone enters “Episerver is grate,” DidYouMean returns “Episerver is great” because previously, the majority of people who entered “Episerver is grate” and got no results, then entered “Episerver is great” and got results.

This topic explains how to create related queries in Episerver Find. 


To get Related Queries for a search query, use the DidYouMean method of StatisticsClient in namespace:

var results = client.Statistics().DidYouMean("Beethoven");

How "Did you Mean?" works

The "Did you Mean?" feature is the aggregation of consecutive queries. In order for "Did you Mean?" to work, the following conditions must exist.

  • The queries should occur within 60 seconds of each other.
  • After the first query was submitted, there was no click in the results list.
  • The queries are not identical.
  • All query terms in the second query occur in at least 1 document in your index.

Complication if not tracking clicks

The second condition above involves tracking clicks. If you do not track clicks, that requirement is always true so might present accuracy issues. However, if you are using unified search and .Track() for tracking, click tracking is done automatically.