Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Exclude pages and page types from search index



I have a question regarding search (not Find) in EPiServer 7. I'm wondering how I can prevent a page (or an entire page type) from beeing indexed. I guess I need to do something in the DocumentAdding event but I can't figure out what. Or is there another way to do it?

Nov 01, 2013 10:29

You could add a post search filter that removes certain pages depending an a property value or on page type name. 

Here I do a reording depending on a boolean property:

You need to rewrite the filter method to fit your need.

Post on creating filters by Frederik Vig:


Nov 01, 2013 19:20

Thank you for the links Per, probably should have mentioned that the site I'm building is MVC based.

Anyhow, support pointed out the ISearchable interface for me and I wrote a short summary on how to use it:

Nov 05, 2013 13:47
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.