1. @sitecore-cloudsdk/search/server

LogicalFilterValues

Version:

Type

Interface

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

Name

Type

Description

Value

not

BaseFilter

The 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

or

BaseFilter[]

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]

and

BaseFilter[]

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!