import type { RangeFilterFrom } from './RangeFilterFrom'; import type { RangeFilterTo } from './RangeFilterTo'; /** * @type RangeFilter: Allows you to restrict a search result to hits that have values for a given attribute that fall within a given value range. The range filter supports several value types and relies on the natural sorting of the value type for range interpretation. Value ranges can be open-ended, but only at one end of the range. You can configure whether the lower bounds and upper bounds are inclusive or exclusive. A range filter is useful for general restrictions that can be shared between searches (like a static date range) because the filter result is cached in memory. Range filters are not appropriate if the range is expected to be different for every query (for example, if the user controls the date range down to the hour via a UI control). Range filters are inclusive by default. * * @property field: The search field. * - **Max Length:** 260 * * @property from: * * @property fromInclusive: A flag indicating if the lower bound of the range is inclusive. To make the lower bound exclusive, set to `false`. * * @property to: * * @property toInclusive: A flag indicating if the upper bound of the range is inclusive. To make the upper bound exclusive, set to `false`. * */ export type RangeFilter = { field: string; from?: RangeFilterFrom; fromInclusive?: boolean; to?: RangeFilterTo; toInclusive?: boolean; } & { [key: string]: any; };