searchForHits method
Future<Iterable<SearchResponse> >
searchForHits({
- required List<
SearchForHits> requests, - SearchStrategy? strategy,
- RequestOptions? requestOptions,
Calls the search
method but with certainty that we will only request
Algolia records (hits).
Implementation
Future<Iterable<SearchResponse>> searchForHits({
required List<SearchForHits> requests,
SearchStrategy? strategy,
RequestOptions? requestOptions,
}) async {
final request = SearchMethodParams(requests: requests, strategy: strategy);
return search(searchMethodParams: request, requestOptions: requestOptions)
.then((res) => res.results.map((e) => SearchResponse.fromJson(e)));
}