--- title: Exclude items without layouts from being indexed slug: '2287' canonical_url: https://docs.coveo.com/en/2287/ collection: coveo-for-sitecore-v5 source_format: adoc --- # Exclude items without layouts from being indexed When indexing your items, you might want to exclude items that don't have layouts, which can help reduce the total indexing time, and can reduce the size of your index. While you could do so by [changing the crawling root of your index](https://docs.coveo.com/en/2159/), it can become time consuming when your items without layouts aren't grouped at the same place. Instead, you can decide to include the `Coveo.SearchProvider.CoveoInboundFilters.HasLayoutInboundFilter` processor, which automatically excludes items without layouts from being indexed. . Open the `Coveo.SearchProvider.Custom.config` file. It's usually located under `\Website\App_Config\Include\Coveo`. . Locate the `coveoInboundFilterPipeline` node. It's located under `pipelines`. . In the `coveoInboundFilterPipeline` node, add the following node: ```xml ``` . (Optional) Specify a path on which to apply your processor. By default, the processor is applied to all of the Sitecore items. **Example** In your Sitecore instance, you kept the default crawling roots, which crawl items under `/sitecore/content` and under `/Media Library/Files`. You want to prevent items without layouts in the `content` branch from being indexed, but not in the `/Media Library/Files` one, which usually only contain items without layouts. In your processor, you add the following `ApplyToPaths` node. ```xml /sitecore/content ``` > **Note** > > Use a semicolon (`;`) to separate paths when specifying multiple paths in the `` element. . Save and close the file. . Rebuild your indexes (see [Coveo for Sitecore indexing guide](https://docs.coveo.com/en/2216/)).