1. @sitecore-cloudsdk/search/server

ListFacetFilter

Version:

Type

Class

Implements

FacetFilterBase

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

Name

Type

Description

operator

ListOperators

The operator to check if any or all of a set of values is included in a certain attribute.

Accepted values:

  • "anyOf"

  • "allOf"

values

string[]

N/A

Properties

Name

Type

Description

_operator

ListOperators

Any value in LogicalOperators except for "not".

_value

string[]

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!