search method
Search :-)
Implementation
Future<SearchResult> search({
Map? query,
// TODO: investigate if/when this should be deprecated in favour of `from`
int? offset,
// TODO: investigate if/when this should be deprecated in favour of `size`
int? limit,
List<Object>? fields,
dynamic source,
Map? suggest,
List<Map>? sort,
Map? aggregations,
Duration? scroll,
HighlightOptions? highlight,
bool? trackTotalHits,
int? size,
double? minScore,
}) async {
return await _client.search(
index: name,
type: type,
query: query,
offset: offset,
limit: limit,
fields: fields,
source: source,
suggest: suggest,
sort: sort,
aggregations: aggregations,
scroll: scroll,
highlight: highlight,
trackTotalHits: trackTotalHits,
size: size,
minScore: minScore,
);
}