elastic_client 0.1.0+1

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 73

Dart bindings for ElasticSearch HTTP API.

ElasticSearch is a full-text search engine based on Lucene.

0.1.0

  • First public version.

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://localhost:9200/'));
  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(
      'my_index', 'my_type', elastic.Query.term('some', ['data']));
  print(rs.toMap());

  await transport.close();
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  elastic_client: ^0.1.0+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:elastic_client/elastic_client.dart';
  
Version Uploaded Documentation Archive
0.1.0+1 Oct 16, 2018 Go to the documentation of elastic_client 0.1.0+1 Download elastic_client 0.1.0+1 archive
0.1.0 Oct 16, 2018 Go to the documentation of elastic_client 0.1.0 Download elastic_client 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
45
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
73
Learn more about scoring.

We analyzed this package on Nov 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.6

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:elastic_client/elastic_client.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
http_client ^0.5.0 0.5.0
Transitive dependencies
executor 2.1.2
path 1.6.2
stack_trace 1.9.3
Dev dependencies
test ^1.0.0