1. Interfaces

LogicalFilterValues

Version: 0.6
TypeInterface
Import path@sitecore-cloudsdk/search/server

Logical conditions for filtering search results.

Signature

export interface LogicalFilterValues {
  not: BaseFilter;
  or: ArrayOfAtLeastTwo<BaseFilter>;
  and: ArrayOfAtLeastTwo<BaseFilter>;
}

Properties

NameTypeDescriptionValue
notBaseFilterThe filter to not match.

Used for returning search results that do not match the filter.

For example, return search results where the type is not "blog".
filter1
orBaseFilter[]The filters to use for the logical condition.

Used for returning search results that match any of the filters.

For example, return search results where the type is either "blog" or "pdf".

Minimum length: 2.
[filter1, filter2]
andBaseFilter[]The filters to use for the logical condition.

Used for returning search results that match all of the filters.

For example, return search results where the type is "blog" and the publication year is 2021.

Minimum length: 2.
[filter1, filter2]
If you have suggestions for improving this article, let us know!