Try our conversational search powered by Generative AI!

DidYouMean from Optimization related queries only



we have implemented the DidYouMean functionality to use the Related Query functionality provided in Online Center->Find->Optimization->Related Queries section.

We haven't defined any entries in related queries section but still Site was showing some results, because it is showing results that other people are searching. (Tracking is enabled on site)

I am wondering is there any way to use Online Center->Find->Optimization->Related Queries section without involving Other people searches.


Mar 17, 2015 17:52

Hello Khurram,

You can filter DidYouMean results by Type "editorial", like this:

var didyouMean = searchClient.Statistics().GetDidYouMean(model.Query);
var editorialDidYouMean = didyouMean.Hits.Where(h => h.Type.Equals("editorial"));
Mar 18, 2015 10:57


Mar 18, 2015 11:01

Hi Friends

I want to implement GetDidYouMean with size attribute. Can you provide me with a sample code?

Syntax: GetDidYouMean(string query,Action<EPiServer.Find.Statistics.Api.DidYouMeanCommand>)

Edited, Aug 23, 2016 21:57

Try something like:

searchClient.Statistics().GetDidYouMean(model.Query, command => command.Size = 10);
Aug 24, 2016 16:30
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.