Loading...

Last updated: Oct 31 2016

Area: Episerver Find Applies to versions: 12 and higher
Other versions:

Filters

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.

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

PublishedInCurrentLanguage

Checks if the content is published in the current language.

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

CurrentlyPublished

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

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.

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

FilterForVisitor

Group of filters including ExcludeDelete, PublishedInCurrentLanguage, and FilterOnReadAccess.

SearchClient.Instance.Search<IContent>().FilterForVisitor()

Do you have feedback on this documentation? Send an email to documentation@episerver.com. For development-related questions and discussions, refer to our Forums on https://world.episerver.com/forum/