ducene 0.5.1 ducene: ^0.5.1 copied to clipboard
An instant search library for Dart.
ducene #
An instant search library for Dart.
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.