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"));
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>)
Try something like:
searchClient.Statistics().GetDidYouMean(model.Query, command => command.Size = 10);
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.