Results class Null safety
Represents the response for QueryType.search, QueryType.geo and QueryType.range type of SearchController.
Constructors
Properties
- customData → Map?
-
read-only
-
data
↔ List<
Map< String, dynamic> > -
An array of results obtained from the applied query.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
-
Number of hidden results found.
read-only
- numberOfResults → int
-
Total number of results found.
read-only
-
parseResults
↔ (List<
Map< Function?(List<String, dynamic> >Map> results, [List<Map> ? sourceData])?) -
To parse the results.
read / write
- promoted → int
-
Number of promoted results found.
read-only
-
promotedData
→ List<
Map> -
An array of promoted results obtained from the applied query.
read-only
- raw ↔ Map?
-
Raw response returned by ES query
read / write
- rawData → Map?
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- time → int
-
Total time taken by request (in ms).
read-only
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
setData(
List< Map< data) → voidString, dynamic> > -
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