we have implemented the DidYouMean functionality to use the Related Query functionality provided in Online Center->Find->Optimization->Related Queries section. http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/8/DotNET-Client-API/Searching/Related-Queries/
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)http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=115046
I am wondering is there any way to use Online Center->Find->Optimization->Related Queries section without involving Other people searches.
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);