ElasticSearch constructor

ElasticSearch(
  1. {@required String host,
  2. int port = 9200,
  3. String scheme = 'http',
  4. ElasticSearchCredentials credentials,
  5. HttpClient httpClient,
  6. bool autoCreateIndex = true}
)

Implementation

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