ElasticSearch class

An adapter for using ElasticSearch, a software product by Elastic NV.

An example:

import 'package:database/adapters.dart';
import 'package:database/database.dart';

void main() {
  final database = ElasticSearch(
    host: 'localhost',
  );

  // ...
}
Inheritance

Constructors

ElasticSearch({@required String host, int port = 9200, String scheme = 'http', ElasticSearchCredentials credentials, HttpClient httpClient, bool autoCreateIndex = true})
ElasticSearch.withUri(Uri uri, {ElasticSearchCredentials credentials, HttpClient httpClient, bool autoCreateIndex = true})

Properties

autoCreateIndex bool
final
hashCode int
The hash code for this object. [...]
read-only, inherited
httpClient HttpClient
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uri Uri
final

Methods

close() Future<void>
Closes the database adapter.
@mustCallSuper, inherited
database() Database
Returns the database.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
performCheckConnection({Duration timeout}) Future<void>
override
performDocumentBatch(DocumentBatchRequest request) Future<void>
inherited
performDocumentDelete(DocumentDeleteRequest request) Future<void>
override
performDocumentDeleteBySearch(DocumentDeleteBySearchRequest request) Future<void>
inherited
performDocumentInsert(DocumentInsertRequest request, {bool autoCreateIndex = true}) Future<void>
Inserts by using read and upsert operations inside a transaction.
override
performDocumentRead(DocumentReadRequest request) Stream<Snapshot>
override
performDocumentReadWatch(DocumentReadWatchRequest request) Stream<Snapshot>
inherited
performDocumentSearch(DocumentSearchRequest request, {bool autoCreateIndex}) Stream<QueryResult>
override
performDocumentSearchChunked(DocumentSearchChunkedRequest request) Stream<QueryResult>
inherited
performDocumentSearchWatch(DocumentSearchWatchRequest request) Stream<QueryResult>
inherited
performDocumentTransaction(DocumentTransactionRequest request) Future<void>
override
performDocumentUpdate(DocumentUpdateRequest request) Future<void>
Updates by using read and upsert operations inside a transaction.
override
performDocumentUpdateBySearch(DocumentUpdateBySearchRequest request) Future<void>
inherited
performDocumentUpsert(DocumentUpsertRequest request, {bool autoCreateIndex = true}) Future<void>
override
performExtension(DatabaseExtensionRequest<DatabaseExtensionResponse> request) Stream<DatabaseExtensionResponse>
inherited
performSchemaRead(SchemaReadRequest request) Stream<DatabaseSchema>
inherited
performSqlQuery(SqlQueryRequest request) Future<SqlIterator>
inherited
performSqlStatement(SqlStatementRequest request) Future<SqlStatementResult>
inherited
performSqlTransaction(SqlTransactionRequest request) Future<void>
inherited
toString() String
A string representation of this object. [...]
inherited
valueToJson(Object value) Object

Operators

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