Created
January 27, 2014 12:17
-
-
Save lindstromhenrik/8647566 to your computer and use it in GitHub Desktop.
Custom tags tracking using EPiServer Find CMS 6 R2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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