Create a search index that applies to group of pages

By default, when you create search indexes in Sitefinity CMS, you cannot specify the pages to which the search index applies. Sitefinity CMS indexes the content of all pages. You can create a search index that applies only to a selection of pages under a group page by replacing the default PageInboundPipe with a custom one.

To achieve this, perform the following:

  1. Create a PageInboundPipeCustom.cs class, which inherits from the default PageInboundPipe class.
  2. In the PageInboundPipeCustom.cs class, override the PushData() method. With this method, you get the pages under the group page that you want to include in the internal search and pass them to the base PushData() method:
  3. To replace the default PageInboundPipe with the custom one, you need to unregister the default pipe and register the custom one in your Global.asax file:
  4. Build the solution and restart the application.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

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.

Web Security for Sitefinity Administrators

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.

Foundations of Sitefinity ASP.NET Core Development

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.

Was this article helpful?