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 = await DirectoryHolder.open(new RAMIndexHolderDirectory());
  // 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.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
firebase-dart: https://github.com/firebase/firebase-dart [...]
ducene.store.html
dart:html
ducene.store.sembast
sembast: https://github.com/tekartik/sembast.dart [...]
ducene.util
Some utility classes.