By default, Sitefinity CMS shows all results from the index that has been designated in your Search box. This means that, in a multisite environment, if you only want to have a single index for all sites in your project, the results shown would be from all sites. And if you want to have individual search results for sites, you must create an index for each site. Depending on the number of sites you have, this could result in increased hosting costs and difficulty to manage your search indexes.
If you want indexes to show results just from the current site only, you can configure Sitefinity CMS and your Search box widget to show results from the currently used site only even if it shares an index with other sites.
IMPORTANT: For projects that upgrade to Sitefinity CMS 14.3 or above, your indexes must be deleted and created anew if you want to use this feature. Just reindexing is not sufficient.
You can enable this filtering of search results in a common index per site at system level or per widget.
To configure the filtering at system level:
1. Navigate to Administration » Settings » Advanced » Search.
2. Disable the Search in all sites in an index option.
3. Click Save changes.
The configuration in advanced settings affects the whole project. Each Search box widget can override this configuration, providing ability to instruct specific sites to have different behaviour.
You use the Search box widget to enable users to search for content on your website. For more information, see MVC Search box widget.
You can configure the Search box widget to show results from all sites in an index or only for the current site irrespective of the advanced setting configuration.
To do that:
You use the Search box widget to enable users to search for content on your website. For more information, see .Net Core Search box widget.
To do this, perform the following:
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important