Class UnionReducer<T>
Type Parameters
Implements
Index
Constructors
constructor
- new UnionReducer<T extends object>(indexField: Key): UnionReducer<T>
Type Parameters
Parameters
- indexField: Key
Returns UnionReducer<T>
Methods
reduce
- reduce(data: TrieSearchReducerData<T>): void
Accumulates and reduces each batch of matches for one or more phrases.
Parameters
- data: TrieSearchReducerData<T>
Matches of current iteration / batch.
Returns void
- data: TrieSearchReducerData<T>
reset
- reset(list: TrieSearchReducerResetData<T>): void
Reset state.
Parameters
- list: TrieSearchReducerResetData<T>
The main output list from TrieSearch.search.
Returns void
- list: TrieSearchReducerResetData<T>
Provides an ITrieSearchReducer implementation to accumulate a union /
AND
of matches across all phrases provided in a search query.