Sitecore MultiSite soultion with multiple index.
Good morning, we are in the situation to have a Sitecore multisite installation with at least ten index, one for a single site. We built one search page for each site using a searchbox and a search sublayout. Now we need to choice for each search page the right index to use. How we can do that? Is it possible to define for search page x to use custom search index y and for the search page z use the custom search index p …
Thanks in advance. Dante.
This is not possible with Coveo for Sitecore. you should have only one master and one web indexes. You then need to filter the items at query time. If you have an Enterprise edition, you can do it from the Coveo Search component properties in the "Filter Expressions" section with the nice rule editor. There is a rule named "Where the item is the specified item or one of its subitems" that is exactly suited for that task. If you have a Pro or Free edition, you can inject the same filter programatically with a JS UI buildingQuery event handler that adds the
<%= ToCoveoFieldName("_path") %> == "SHORT GUID OF THE SITE ROOT ITEM" expression where SHORT GUID OF THE SITE ROOT ITEM if in the format like "0de95ae441ab4d019eb067441b7c2450".
I hope this helps,