1. Classes

ListFacetFilter

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

A filter that returns facet values if all or any of a set of values are included in a certain facet value.

Constructor

ListFacetFilter(
  operator: ListOperators,
  values: ArrayOfAtLeastOne<string>
)

Parameters

NameTypeDescription
operatorListOperatorsThe operator to check if any or all of a set of values is included in a certain attribute.Accepted values:"anyOf""allOf"
valuesstring[]N/A

Properties

NameTypeDescription
_operatorListOperatorsAny value in LogicalOperators except for "not".
_valuestring[]Array of at least one string.

Methods

toDTO

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

Signature

toDTO(): ListFacetFilterDTO

Return value

Returns the ListFacetFilter instance in a standardized DTO format.

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