Interface InputSearchTopLevelFilter

Same as InputSearchFilter type, but accepts an additional optional parameter excludeFacets

interface InputSearchTopLevelFilter {
    all?: InputSearchFilter[];
    any?: InputSearchFilter[];
    excludeFacets?: string[];
    field?: string;
    hasValue?: boolean;
    not?: InputSearchFilter[];
    prefix?: string[];
    range?: InputSearchRangeFilter[];
    value?: string[];
}

Properties

Joins nested filters with logical AND

Joins nested filters with logical OR

excludeFacets?: string[]

List of facet ID's to which this filter should not be applied. (default: all facets with the same field as filter if filter contains field, otherwise empty)

field?: string

Product field to apply filter on

hasValue?: boolean

If true, matches all products which have the value on selected field. If false, matches all products which have no value in selected field.

Joins nested filters with logical AND and inverts match

prefix?: string[]

List of prefixes to match

List of range filters to apply

value?: string[]

List of values to filter by, joined by OR operator