Skip to content

Instantly share code, notes, and snippets.

@lindstromhenrik
Created January 27, 2014 12:17
Show Gist options
  • Save lindstromhenrik/8647566 to your computer and use it in GitHub Desktop.
Save lindstromhenrik/8647566 to your computer and use it in GitHub Desktop.
Custom tags tracking using EPiServer Find CMS 6 R2
// At query time add appropriate tags
using EPiServer.Find.Framework.Statistics;
client.Search<>()
...
.Track(new string[] { "mytag" })
.GetResults()
// When fetching autocomplete/didyoumean/spellcheck through the REST endpoint
/find/rest/autocomplete|didyoumean|spellcheck/get/query/count/tag
// => fetching 3 autocompletes starting with xyz and tagged mytag
/find/rest/autocomplete/get/xyz/3/mytag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment