ElasticAppSearch class
The main instance object for handling queries to Elastic App Search
You need to init the class with your own endPoint and searchKey
Both are available in your deployment, when going to App Search
then Credentials
. For example:
https://your_deployment.kb.europe-west3.gcp.cloud.es.io:9243/app/enterprise_search/app_search/credentials
Warning: use the search-key, not the private-key!
Constructors
- ElasticAppSearch({required String endPoint, required String searchKey, bool debug = false})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- instance → ElasticAppSearch
-
Returns an instance for the specified
endPoint
andsearchKey
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
engine(
String name) → ElasticEngine -
Creates and retuens a new
ElasticObject
linked to this instance of service. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
ElasticQuery query, [CancelToken? cancelToken]) → Future< ElasticResponse> -
Executes a request on Elastic App Search and returns a
ElasticResponse
object An ElasticQuery must be provided with the parameters of the query. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited