Gravatar for

Question by psomtri, Apr 6, 2015 11:54 AM

Inbound filter pipeline not working

I have my configuration set to index only Home and layouts folders, but it is indexing entire sitecore tree.

I am using Sitecore 8 and newly released (March 2015 release of) Coveo.

Following is my config snippet.

<indexing.filterIndex.inbound patch:source="Coveo.SearchProvider.config">
   Uncomment this to filter out items that are not of the latest version. 
  <processor type="Coveo.SearchProvider.InboundFilters.IndexLatestVersionInboundFilter, Coveo.SearchProviderBase"/>
     Uncomment this to use an inbound filter on item paths. By default, it will only index items in
     /sitecore/content. You can specify multiple paths by separating them with a semi-colon. 
  <processor type="Coveo.SearchProvider.InboundFilters.ItemPathInboundFilter, Coveo.SearchProviderBase">
  <processor type="Sitecore.ContentSearch.Pipelines.IndexingFilters.ApplyInboundIndexFilter, Sitecore.ContentSearch" patch:source="Sitecore.ContentSearch.config"/>
1 Reply
Gravatar for

Answer by Jean-François L'Heureux, Apr 6, 2015 12:08 PM

As you can see, you still have the default Sitecore.ContentSearch.Pipelines.IndexingFilters.ApplyInboundIndexFilter processor in your final configuration. This processor runs after your Coveo processors and overrides the previous inbound filters by telling Sitecore to index all the items.

As explained in our inbound filter guide, you should comment the default Sitecore inbound filter if you want to use inbound filters (see Excluding Sitecore Items From Your Index).

Ask a question