Filters
Describes the built-in filtering extensions in the EPiServer.Find.Cms namespace for the Optimizely Content Management System (CMS) integration of Optimizely Search & Navigation.
CurrentlyPublished
CurrentlyPublished
checks whether the content is currently published in any language.
SearchClient.Instance.Search<IContent>().CurrentlyPublished()
ExcludeDeleted
ExcludeDeleted
excludes content that was moved to the trash (recycle bin).
Note
This method is important because, by default, content in the trash is indexed.
SearchClient.Instance.Search<IContent>().ExcludeDeleted()
FilterOnReadAccess
FilterOnReadAccess
filters content to which the end user does not have access. This method uses VirtualRoleRepository
, which includes users, roles, and visitor groups.
SearchClient.Instance.Search<IContent>().FilterOnReadAccess()
FilterForVisitor
FilterForVisitor
is a group of filters including ExcludeDelete
, PublishedInCurrentLanguage
, and FilterOnReadAccess
.
FilterOnCurrentSite
FilterOnCurrentSite
filters content of the current site that is being visited. This method uses SiteDefinition.Current.Id
to determine which site is being visited.
SearchClient.Instance.Search<IContent>().FilterOnCurrentSite();
PublishedInCurrentLanguage
PublishedInCurrentLanguage
checks whether the content is published in the current language.
SearchClient.Instance.Search<IContent>().PublishedInCurrentLanguage()
Updated 8 months ago