elastic_client 0.1.1 copy "elastic_client: ^0.1.1" to clipboard
elastic_client: ^0.1.1 copied to clipboard

outdated

Dart bindings for ElasticSearch HTTP API. ElasticSearch is a full-text search engine based on Lucene.

example/example.dart

import 'package:elastic_client/console_http_transport.dart';
import 'package:elastic_client/elastic_client.dart' as elastic;

main() async {
  final transport =
      new ConsoleHttpTransport(Uri.parse('http://10.2.0.4:29200/'));
  final client = new elastic.Client(transport);

//  await client.updateDoc('my_index', 'my_type', 'my_id', {'some': 'data'});
//  await client.flushIndex('my_index');

  final rs = await client.search(
      'drive_mk_v1_text', 'doc', elastic.Query.term('some', ['data']));
  print(rs.toMap());

  await transport.close();
}
41
likes
0
pub points
85%
popularity

Publisher

verified publisheragilord.com

Dart bindings for ElasticSearch HTTP API. ElasticSearch is a full-text search engine based on Lucene.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http_client

More

Packages that depend on elastic_client