Bounty Hunter
A full text search engine of unstructured documents. It is base upon a reversed index.
Simple usage
First create an instance of cargo
Cargo storage = new Cargo(MODE: CargoMode.MEMORY);
Construct an instance of Hunter.
Hunter hunter = new Hunter( cargo );
Feed document into the system so it can be indexed.
hunter.feedDocSync( "hello world", "This is a hello world document ... fix");
You can also feed a document asynchronous and then it will use the asynchronous methods from Cargo.
hunter.feedDoc( "hello world", "This is a hello world document ... fix").then((int docId) {
// do stuff here!
});
Search for a document and retrieve the documents containing these words.
hunter.search( "document fix" );
Example
Todo
- Possibility to add words that can be ignored, like stop words
- Stemming for other languages
Contributing
If you found a bug, just create a new issue or even better fork and issue a pull request with you fix.
Social media
Follow us on twitter
Google+
Follow us on google+
or join our G+ Community