ducene

An instant search library for Dart.

Pub Build Status License

Demo

Pub Search : ducene + angular2 + firebase. The loading takes 15+ seconds.

Usage

A simple usage example:

Future main() async {
  // open an index holder
  IndexHolder index = new RAMIndexHolder();
  // prepare documents
  List<Document> docs = [new Document()...];
  // add or update documents
  await index.updateDocuments(docs);
  // open a searcher
  IndexSearcher searcher = await index.newIndexSearcher();
  // count by query
  int count = await searcher.count(new BoolQuery()...);
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Libraries

ducene.analysis

Text analysis.

ducene.document

The logical representation of a Document for indexing and searching.

ducene.index

Code to maintain and access an index.

ducene.search

Code to search an index.

ducene.store

i/o API, used for all index data.

ducene.store.firebase

firebase3-dart: https://github.com/Janamou/firebase3-dart

ducene.store.html

dart:html

ducene.store.sembast

sembast.dart: https://github.com/tekartik/sembast.dart

ducene.store.standard

Some standard store classes.

ducene.util

Some utility classes.