1. @sitecore-cloudsdk/search/server

LogicalFacetFilter

Version:

Type

Class

Implements

FacetFilterBase

Import path

@sitecore-cloudsdk/search/server

A filter with logical conditions. Used for returning search results that match a set of filter values or that do not match a certain filter value.

Constructor

LogicalFacetFilter(
  operator: Exclude<LogicalOperators, 'not'>,
  value: Array<FacetFilter>
)

Parameters

Name

Type

Description

operator

LogicalOperators

Logical operators used for filtering results.

Must be one of:

  • "and"

  • "or"

value

FacetFilter[]

One of the available facet filters. Facet filters are the filter settings to apply to a facet type.

Properties

Name

Type

Description

_operator

LogicalOperators

Must be one of:

  • "and"

  • "or"

_value

FacetFilter[]

One of the available facet filters. Facet filters are the filter settings to apply to a facet type.

Methods

toDTO

Maps the LogicalFacetFilter instance to its DTO (data transfer object) format.

Signature

toDTO(): LogicalFacetFilterDTO

Return value

Returns the LogicalFacetFilter instance in a standardized DTO format.

If you have suggestions for improving this article, let us know!