Query Custom Index
I want to define a custom index and use the default renderings/controls provided by Coveo for Sitecore to query the index.
I'm not seeing any parameter to specify the index I want the search page to use. Is this possible to specify? What controls what index your searches are run against?
Coveo for Sitecore automatically query against the first Coveo index that indexes the search page the user is visiting in the current Sitecore site's database.
Suppose you have a Sitecore site
<site name="website" database="web" .../> and a search page in it. When a visitor visits the search page, Coveo for Sitecore will query the first Coveo index that indexes the web database.
However, when you edit this search page in the Content Editor or view it in preview mode, the current Sitecore site is "admin" and its database is "master". Coveo for Sitecore queries the first Coveo index that indexes the master database.
For the moment, this behavior is not configurable. We are working on a feature to let the administrator choose a search index for every Coveo Search component.
Can you give me more context for your separate index? Why can't you use the default web and master indexes?