Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

UnifiedSearchFor does not return results for anonymous user

$
0
0

I have a weird issue where executing a search using the extension method UnifiedSearchFor returns no results. However, if I'm logged into the CMS and then perform a site search in a separate browser tab, results are returned as expected. I'd have thought unified search can be used for site wide search

I'm triggering the search using a Web API controller. So when I tried to execute unified search from a normal page controller and it returned results in an anonymous user context!!!

This is my code

I'd appreciate any suggestions as to why Unified Search doesn't return results for anonymous users when executed in a WebAPI context. I did come across this old forum post with a similar issue but it doesn't hint at a solution

Thanks


Viewing all articles
Browse latest Browse all 8020

Trending Articles