The options defining a DateFilter.

interface DateFilterOptions {
    facetId?: string;
    field: string;
    filterFacetCount?: boolean;
    injectionDepth?: number;
    tabs?: { excluded?: string[]; included?: string[] };
}

Properties

facetId?: string

A unique identifier for the controller. By default, a unique random identifier is generated.

field: string

The field whose values you want to display in the filter.

filterFacetCount?: boolean

Whether to exclude folded result parents when estimating the result count for each facet value.

true

injectionDepth?: number

The maximum number of results to scan in the index to ensure that the facet lists all potential facet values.

Note: A high injectionDepth may negatively impact the facet request performance.

Minimum: 0

1000

tabs?: { excluded?: string[]; included?: string[] }

The tabs on which the facet should be enabled or disabled.