search-index
Version:
A network resilient, persistent full-text search library for the browser and Node.js
34 lines (23 loc) • 1.22 kB
Markdown
# search-index
### A network resilient, persistent full-text search library for the browser and Node.js
[](https://www.npmjs.com/package/search-index)
[](https://npm-stat.com/charts.html?package=search-index)
[](LICENCE)
[](https://travis-ci.org/fergiemcdowall/search-index)
[](https://standardjs.com)
## Quick start
```javascript
import { SearchIndex } from 'search-index'
// initialize an index
const { PUT, QUERY } = new SearchIndex(options)
// add documents to the index
await PUT(documents)
// read documents from the index
const results = await QUERY(query)
```
## Documentation
* [Browser
demo](https://codesandbox.io/p/github/fergiemcdowall/search-index-demo/)
([source code](https://github.com/fergiemcdowall/search-index-demo))
* [API](docs/API.md)
* [FAQ](docs/FAQ.md)