No Results on Searches
I've been battling to setup Coveo for Sitecore for a couple days now and finally appear to be quite close. I can rebuild my indexes and see the indexes getting built through the console and admin tool. In addition the Diagnostics page in Sitecore shows everything green/ok.
Unfortunately, when I search for anything in Content Editor or deploy a simple search page and search, I'm always getting no results. I've installed CES on a remote server and Sitecore and the API on the same server. I've set a source name attribute as I'm going to have both a CM and CD environment.
If anyone has any suggestions on how to troubleshoot this, I'd really appreciate it.
Thank you Ryan
You can open your browser developer tools (F12) on the network tab and analyze the request of the search query done by the search page. The request URL is beginning with http://YourSitecoreInstance/coveo/rest/
You can look in the form data for:
- q: the query you typed in the search box
- aq: the advanced query terms
- cq: the constant query terms
Look also the request response. It is supposed to be a JSON object with the results of the search query. It may contain an error message that will inform you on the underlying problem.
By default with an enterprise license, a Coveo search page will only display the "sitecore/content" item and descendants that are in the current language, have a layout and are not in a bucket folder or a media folder. You can customize it by editing the properties of the "Coveo Search" component of your search page.
If you try the search page in the Page Editor or Page Preview mode, the results will come from the Master index. If you try the published search page, the results will come from the Web index.
Thanks for the info, so I'm simply trying to search on words like "folder" or "template" as I have a newly installed Sitecore instance with Coveo for Sitecore installed. My form data looks like:
aq:(@syssource==("loyolatestsitecoremaster_index") NOT @ftemplateid7021==("adb6ca4f-03ef-4f47-b9ac-9ce2ba53ff97","fe5dd826-48c6-436d-b87a-7c4210c7413b"))
My Response looks like:
Any thoughts on how I can tell why it isn't returning results?
I am now facing a very similar issue.
I pulled the form variables directly from the sitecore coveo query:
after cleaning it up…
landing (@syssource==("MYINDEXNAME") NOT @ftemplateid44305==("adb6ca4f-03ef-4f47-b9ac-9ce2ba53ff97","fe5dd826-48c6-436d-b87a-7c4210c7413b")) (@flanguage44305=="en" @fz95xlatestversion44305=="1")
This query returns zero results from the Coveo Search page in Sitecore. However, that same query returns 44 results in the Index Browser.
Going further, I then sent a custom POST request using the Sitecore Search page. I used fiddler and modified the request. I removed all other form variables, so my request looked like this:
Theoretically, this should be the exact same query that I tested within the admin tool and yet I still receive no results.
Thanks again for any help.
Hello, iÂ´m having exactle same problem, I have a fresh coveo installation, and when I call the rest/search, returns 0.
Where I give access to user executing the sitecore query to allow him access to the item?