Try our conversational search powered by Generative AI!

DidYouMean from Optimization related queries only

Vote:
 

Hi,

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.


Regards
Khurram

#118931
Mar 17, 2015 17:52
Vote:
 

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"));
#118979
Mar 18, 2015 10:57
Vote:
 

Super...

#118980
Mar 18, 2015 11:01
Vote:
 

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>)

#152313
Edited, Aug 23, 2016 21:57
Vote:
 

Try something like:

searchClient.Statistics().GetDidYouMean(model.Query, command => command.Size = 10);
#152545
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.