SearchQuery class
SearchQuery describes a search query.
- Annotations
-
- @freezed
Constructors
-
SearchQuery({required String indexPath, required String accessKey, required int limit, required String text, List<
Field> ? filters, List<String> ? select, List<String> ? searchFields, @Default('') String? cursor}) -
Default Constructor
constfactory
-
SearchQuery.fromJson(Map<
String, dynamic> json) -
Unmarshalls from json to SeachQuery
factory
Properties
- accessKey → String
-
AccessKey authenticates the request. Get an AccessKey from the
AccessKeyService.GenerateKey method.
no setterinherited
-
copyWith
→ $SearchQueryCopyWith<
SearchQuery> -
no setterinherited
- cursor → String?
-
Cursor is a encoded string from a previous Query, that you can use to get more
results.
no setterinherited
-
filters
→ List<
Field> ? -
Filters are a list of where filters to apply when performing the search.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexPath → String
-
IndexPath is the path of the index to search.
no setterinherited
- limit → int
-
Limit is the maximum number of search results to return. Smaller limits are
faster.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
searchFields
→ List<
String> ? -
SearchFields is a list of fields to search. If empty, all fields will be
searched.
no setterinherited
-
select
→ List<
String> ? -
Select lists the fields to get from the document. Filters are automatically
included. To get search fields out, they must have been put with store set to
true.
no setterinherited
- text → String
-
Text contains a phrase to search for.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited