Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Theoratically it can be done as, but I am not sure. On top of that, not familiar with Elastic Search syntax also :(
string q = "ElasticSearchQueryToGetTheseDetails";
IQueriedSearch<ISearchContent> queriedSearch = SearchClient.Instance.UnifiedSearch(Language.None)
.For(q);
UnifiedSearchResults result = (queriedSearch).Take(20).GetResult(null, true);
Regards
Khurram
I like it when it is simple :)
I added a request here: http://world.episerver.com/forum/developer-forum/Feature-requests/Thread-Container/2015/6/possible-to-get-information-about-most-frequent-searches-through-statistics-api-in-episerver-find/
There is no way to do this through the API right now. Unified search can not be used since this statistics uses its own index. I think this might be added since it does seem to be a useful feature. For now, this can be achived using a rest request to the stats index like
EPiServer/Find/proxy/_stats/query/top?from=2015-06-09T12%3A00%3A00Z&to=2015-06-10T12%3A00%3A00Z&interval=hour&size=25
which is what the Find UI does. The response would look like
{"status":"ok","total":1,"hits":[{"query":"alloy","count":1}]}
/Viktor
Hi,
In EPiserver Statistics UI we have a Tab for Most Frequent Searches. How can I get those most frequest searches in my code?
I need to know Search phrase and number of queries.
Regards
/K