Gravatar for elspethdick@gmail.com

Question by venusinfurs, Apr 21, 2016 1:37 AM

Coveo SearchView returns 0 results but REST service returns many

Hello, I have Coveo for Sitecore Coveo for Sitecore 80 3.0 (1116) installed in a sitecore instance and CES is set up on a remote server . Querying the rest service from a browser yields results: http:///coveo/rest?q=corporate http:///rest/search?q=corporate

However using the Coveo out of the box SearchView, 0 results are returned.

Looking at the CES Console after querying http:///coveo/rest?q=corporate Query corporate performed by extranet\Anonymous. 19886 results in 0.093 seconds.

After performing a search from the SearchView page: Query corporate performed by extranet\Anonymous. 0 results in 0.073 seconds.

Does anyone have any idea what this could mean? Thank you for your assistance! Ellie

1 Reply
Gravatar for slangevin@coveo.com

Answer by Simon, Apr 21, 2016 9:25 AM

If you have the same user, but different results between the coveo/rest proxy and the search page, I would look at the rules on the search page. The CES console will only show the query (the q parameter of the search object). To see the aq (advanced query) and cq (constant query), I would suggest to look at the browser console. Perform a query and look at the network tab, you should see a POST request against the Rest Proxy. In that query, look at the header >> form data in Chrome, or Params in FireFox , you should see a q, aq and cq parameters. Combine all of them in one query and test it in the Coveo Index Browser.

Let me know what you find.

Cheers,
Simon

Ask a question