How to prevent indexing of certain page and file types in Episerver Find

  • Updated
Description

To remove a page or media type from indexing convention code can be added. 

Resolution
e.g. 
ContentIndexer.Instance.Conventions.ForInstancesOf<Type>().ShouldIndex(x => false); 

Replace <Type> with the type being avoided. 

Ideally this should be done during application startup. 

 

More on conventions here

Fine Indexing

Find Indexing (Legacy)