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)
/search-index/
Package Sidebar
Install
npm i search-index
Repository
Weekly Downloads
45,726
Version
5.1.3
License
MIT
Unpacked Size
654 kB
Total Files
25