Dart 2.x

SearchResults

This class represents a paginated search result.

It can be returned by the following methods:

Properties

Property Type Description
aggregations
Map<String, dynamic>
Search aggregations (can be undefined)
hits
List
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:

Property Type Description
_id
String
Document ID
_score
int
Relevance score
_source
Map<String, dynamic>
Document content