Gravatar for tony.gonzalez@razorfish.com

Question by Tony, Feb 14, 2016 12:46 PM

No Search Results for External Content

Hi,

I have followed the instructions to add an external source to the search results for my Sitecore Search Interface.

https://developers.coveo.com/display/public/SC201411/Displaying+External+Content+in+a+Search+Interface

I am seeing the indexed documents from my external source in the CES admin console but whenever I do a search all I get is results from Sitecore.

Even if I try to query directly I still get no results.

http://sitecoresite/coveo/rest/?q=asset&aq=(@syscollection==("Test")) or

http://sitecoresite/coveo/rest/?q=asset&aq=(@syssource==("TestSource))

I created a Coveo View and added the external source above. I am able to validate that the query is being sent correctly but no results are displaying.

Am I overlooking anything?

Thanks for the prompt response.

-Tony

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Feb 14, 2016 4:01 PM

Hi Tony,

The problem you are describing here is probably a security problem.

The documentation you followed, for the November 2014 release of Coveo for Sitecore, instructed to add 2 additional permissions to the external source before indexing it. One permission for the "sitecore\admin" user and another one for the "extranet\anonymous" role.

Those instructions changed over time. Now we suggest to add only one additional permission for the "Everyone" role because all the Sitecore users are members of this role (see Displaying External Content in a Search Interface).

I think you either:

  • Forgot to add the permissions.
  • Forgot to click the "Apply Changes" button after adding the permissions.
  • Are visiting the page with a user other than "sitecore\admin" or a member of the "extranet\anonymous" role.

After modifying the permission on the external source, make sure to click the "Apply Changes" button and to rebuild the source. Wait until the index transaction is completely committed in the index. Then, test your queries using the "/coveo/rest" method you used. It should return the results you are expecting.

For the search page to display the external source results, make sure the filters and facets you applied to the Sitecore search results also work with your external results field values.

I hope this helps solving your problem.

Jeff

Gravatar for tony.gonzalez@razorfish.com

Comment by Tony, Feb 14, 2016 4:43 PM

That was it (permission issue). Thanks a lot for pointing me into the right direction and for the prompt response Jean-François.

-tony

Ask a question