Results class

Represents the response for QueryType.search, QueryType.geo and QueryType.range type of SearchController.

Constructors

Results(List<Map<String, dynamic>> data)

Properties

customData Map?
no setter
data List<Map<String, dynamic>>
An array of results obtained from the applied query.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hidden int
Number of hidden results found.
no setter
numberOfResults int
Total number of results found.
no setter
parseResults ↔ (List<Map<String, dynamic>> Function(List<Map> results, [List<Map>? sourceData])?)
To parse the results.
getter/setter pair
Number of promoted results found.
no setter
promotedData List<Map>
An array of promoted results obtained from the applied query.
no setter
raw Map?
Raw response returned by ES query
getter/setter pair
rawData Map?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time int
Total time taken by request (in ms).
no setter

Methods

clone() Results
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setData(List<Map<String, dynamic>> data) → void
setRaw(Map? rawResponse) → void
Method to set the raw response form Elasticsearch
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited