database_adapter_elasticsearch 0.2.1 copy "database_adapter_elasticsearch: ^0.2.1" to clipboard
database_adapter_elasticsearch: ^0.2.1 copied to clipboard

discontinued
outdated

Adapter between 'package:database' and Elasticsearch, a full-featured text search engine based on Apache Lucene.

Pub Package Github Actions CI

Overview #

This package enables you to use the package database with Elasticsearch, a text search engine based on Apache Lucene.

Getting started #

Add dependency #

dependencies:
  database: any
  database_adapter_elasticsearch: any

A simple example #

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

// Set up
final Database database = ElasticSearch(
  credentials: ElasticSearchPasswordCredentials(
    user: 'example user',
    password: 'example password'
  ),
);

Future main() async {
  // Insert a document
  final document = await database.collection('example').insert({
    'greeting': 'Hello world!'
  });

  // Search documents
  final results = await database.collection('example').search(
    query: Query.parse(
      'hello',
      skip: 0,
      take: 10,
    )',
  });
}
2
likes
30
pub points
0%
popularity

Publisher

verified publisherdint.dev

Adapter between 'package:database' and Elasticsearch, a full-featured text search engine based on Apache Lucene.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

built_value, collection, database, meta, universal_io

More

Packages that depend on database_adapter_elasticsearch