Try our conversational search powered by Generative AI!

Loading...
Area: Optimizely Search & Navigation
ARCHIVED This content is retired and no longer maintained. See the latest version here.

Recommended reading 

This topic explains the built-in filtering options in an integration with Episerver Find and Episerver CMS 7/7.5 .

Filtering extensions

Episerver Find has a number of built-in filtering extensions vailable in the EPiServer.Find.Cms namespace. Below you will find descriptions of built-in filtering extensions, and examples of how they are used.

ExcludeDeleted

Excludes all content that has been moved to the trash (recycle bin).

Note : This method is important because content in the trash is indexed by default.

C#
SearchClient.Instance.Search<IContent>().ExcludeDeleted()

PublishedInCurrentLanguage

Checks if the content is published in the current language.

C#
SearchClient.Instance.Search<IContent>().PublishedInCurrentLanguage()

CurrentlyPublished

Checks if the content is currently published in any language on the website.

C#
SearchClient.Instance.Search<IContent>().CurrentlyPublished()

FilterOnReadAccess

Filters content the end user does not have access to. This method uses VirtualRoleRepository, which includes users, roles, and visitor groups.

C#
SearchClient.Instance.Search<IContent>().FilterOnReadAccess()

FilterForVisitor

Group of filters including ExcludeDelete, PublishedInCurrentLanguage, and FilterOnReadAccess.

C#
SearchClient.Instance.Search<IContent>().FilterForVisitor()
Do you find this information helpful? Please log in to provide feedback.

Last updated: Nov 16, 2015

Recommended reading