volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Statistic search

Hi,

Episerver CMS 7.5 and New Episerver Find (8).

Trying to figure out how statistic search works. I have .track() in my code:

var pages = SearchClient.Instance.Search<SitePageData>()
.For(query)
.FilterForVisitor()
.Track()
.GetContentResult();

I tried the example:

<script type="text/javascript">
$.get('/en/find/rest/autocomplete/get/c?size=3', function (data) {
	$.each(data.Hits, function(index, value)
	{
		$('#autocomplete').append("<p>"+"Autocomplete for 'c': <a href=/Search/?q=" + value.Query + ">" + value.Query + "</a></p>");
	}
	)}, "jsonp");
</script>

<div id="autocomplete"></div>

Checked firebug and the json response has no hits.

I have lots of tracked searchwords in Find. No problem searching using regular search functionality. Tried to paste the en/find/rest/autocomplete/get/c?size=3 url into an browser and it doesnt return any hits.

What have i missed?
#87871
Jun 24, 2014 17:33
* 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.