SDK
SDK Dart Null Safety v3.x
2

SearchResults #

This class represents a paginated search result.

It can be returned by the following methods:

Properties #

PropertyTypeDescription
aggregations
Map<String, dynamic>
Search aggregations (can be undefined)
hitsList<dynamic>Page results
total
int
Total number of items that can be retrieved
fetched
int
Number of retrieved items so far

hits #

Each element of the hits ArrayList is a List<dynamic> containing the following properties:

PropertyTypeDescription
_id
String
Document ID
_score
int
Relevance score
_source
Map<String, dynamic>
Document content