Class: SearchService<T, K>
Represents a search service that facilitates executing search operations using a specified search strategy.
Extended by
Type Parameters
T
T
The type of parameters used for the search operation.
K
K
The type of result returned by the search operation.
Constructors
Constructor
new SearchService<
T,K>(strategy):SearchService<T,K>
Constructs a new SearchService instance with the specified search strategy.
Parameters
strategy
SearchStrategy<T, K>
The search strategy to be used for executing search operations.
Returns
SearchService<T, K>
Properties
strategy
strategy:
SearchStrategy<T,K>
The search strategy associated with this search service.
Methods
execute()
execute(
params):SearchExecution<K>
Executes a search operation using the specified parameters.
Parameters
params
T
The parameters for the search operation.
Returns
A SearchExecution object representing the ongoing search operation.