Gravatar for

Question by prabhatsingh2011, Aug 12, 2016 1:33 AM

Tenant Specific facets in coveo search page

Hi ,

We have multi tenant environment setup. In our search result page we are showing results of all the tenants. we want to have a facet in the page which will do filtering based on tenant name and show the tenant specific results.

Please let us know how we should approach this.

Thanks, Prabhat

1 Reply
Gravatar for

Answer by Jean-François L'Heureux, Aug 12, 2016 10:02 AM

Hi Prabhat,

To do this, you need:

  1. A field on all your indexed documents that contains the tenant names.
  2. A bucket facet item for this field to make it facettable and available to select in your new facet component. (see Creating a Facet Component Based on a Field)
  3. If a Sitecore item can be in multiple tenants, the field needs to be configured as a multi-value facet field. (see Making a Sitecore Field Multi-Value)
  4. To insert a new facet component using that field in your search interface. (see Inserting and Customizing a Facet Component)

For #1, I would first check in your Coveo index/content browser for a field already containing the values you are looking to display in your facet. On my indexed documents, there is already a fsiteXXXXX field which contains all the Sitecore sites able to serve the Sitecore item. However, it contains sites like coveoanalytics, coveorest, login, admin, service, scheduler, system, and publisher which you probably won't want to display in your facet.

If you don't find an existing field, you will need to create your own computed index field (see Implementing and Configuring a Computed Field in Your Index).

Gravatar for

Comment by prabhatsingh2011, Aug 16, 2016 12:09 AM

Thanks It helped. :)

Ask a question