1. Classes

ListFilter

Version:
TypeClass
ExtendsBaseFilter
Import path@sitecore-cloudsdk/search/browser

A filter that returns search results if all or any of a set of values are included in a certain attribute.

For example, return only those search results where the type attribute matches all or any of the following values: "video", "film", "audio".

Constructor

ListFilter(
  attributeName: string,
  operator: ListOperators,
  value: unknown[]
)

Parameters

NameTypeDescription
attributeNamestringThe entity's attribute to be compared with the value.
operatorListOperatorsThe operator to check if any or all of a set of values is included in a certain attribute.Accepted values:"anyOf""allOf"
valueunknownThe value to compare the entity's attribute with.

Properties

NameTypeDescription
_attributeNamestringRequired.

The entity's attribute to be compared with the value.

Methods

toDTO

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

Signature

toDTO(): ListFilterDTO

Return value

Returns the ListFilter instance in a standardized DTO format.

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