Automatically search all external sources in Hive framework (Coveo for Sitecore)
I want a tab that just searches ALL external sources so that if Coveo administrators add new sources, the "All Sites" tab will automatically pick up the results without needing to remember to update the Sitecore search page. Is this possible? I'm using Hive framework.
An alternate solution would be to remove all the expressions added by Coveo for Sitecore and instead switch to exclude the `master` index when you are in `web`.
The logic would be the following:
if in a master context, `@syssource<>"coveo_web_index"`, if in a web context, `@syssource<>"coveo_master_index"`.
Note that if you have a `pub` index for publishing, it will require you to add a new rule for this index and exclude the `pub` index in the two other contexts.
This is not possible with Coveo for Sitecore. It is due to the fact that Coveo for Sitecore automatically adds an advanced query expression for the Sitecore source to query (master/web). There is no way to configure Coveo for Sitecore not to add this query expression, thus,it requires all external sources to be added one by one in Coveo for Sitecore.
With a lot of coding, you could create a custom solution:
- Write a Sitecore job that calls the Coveo index to list all sources. This job would cache the sources to add to your tab. Pay attention not to execute this job too often. Once every few hours should be enough.