Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Track() sends invalid (empty) siteid tag

Vote:
 

If you using Track() for your queries you can notice that it sends empty siteid tag:

            SearchClient.Instance.Search<StoreDocument>()
                .For(query)
                .Track()
                .GetResult();

Track request:

http://es-api01.episerver.com/8gLs2SIsx4tTHSeTimkiZJIcRH2EJJlJ/julaabtemp_index22191/_track?q=halmstad&q.hits=1&id=ISMvKXpXpadDiUoOSoAfww==&tags=language%3asv%2csiteid%3a

That happens due to the fact that track request is executed in a separte thread from thread pool where HttpContext.Current is null and CmsSiteIdentityLoader->SiteDefition.Current can't resolve current site.

Suppose that is a bug.

#86294
May 18, 2014 13:40
Vote:
 

Hi Yauheni,

I have entered this into our bug system to make sure it is triaged and investigated.

Thank you for your reporting this!

Regards,
Håkan

#86620
May 26, 2014 19:10
Vote:
 

Just adding the bug # here:
Bug #114702: Track() sends invalid (empty) siteid tag

#88356
Jul 09, 2014 14:13
* 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.