0.6.15 • Published 8 years ago
cozy-fork-search-index v0.6.15
search-index
A persistent full text search engine for the browser and Node.js
var si = require('search-index')(options);
si.add(data, opt, function (err) {
//add stuff to index
});
si.search(q, function (err, searchResults) {
//search in index
});
search-index
is a freetext search library for JavaScript. You can use it to drop kick-ass search functionality into your node.js, HTML, OSX and Android applications.
You can also generate search indexes and easily share them- you could for example make an index available on bittorrent, or you could push an index out to a browser. It is really easy to move indexes around, and create decentralised search engines.
search-index
uses LevelDB as a backend via the LevelUp interface. These days, LevelDB-ish databases are installed pretty much everywhere, which is why search-index
is so portable.
Find out how to use the search-index
module here:
For the impatient
User Documentation
- Create an index
- Add documents to an index
- Search in an index
- Matchers and autosuggest
- Replicate an index
Examples
API reference
0.6.15
8 years ago