1. Classes

LogicalFacetFilter

Version: 0.6
TypeClass
ImplementsFacetFilterBase
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

NameTypeDescription
operatorLogicalOperatorsLogical operators used for filtering results.Must be one of:"and""or"
valueFacetFilter[]One of the available facet filters. Facet filters are the filter settings to apply to a facet type.

Properties

NameTypeDescription
_operatorLogicalOperatorsMust be one of:"and""or"
_valueFacetFilter[]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!