Class UnionReducer<T>
Type Parameters
Implements
Index
Constructors
constructor
- new
Union <T>(indexField): UnionReducer<T>Reducer Type Parameters
Parameters
- indexField: Key
Returns UnionReducer<T>
Methods
reduce
- reduce(data): 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): 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.