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)
Package Sidebar
Install
npm i search-index
Repository
Weekly Downloads
155,540
Version
6.0.1
License
MIT
Unpacked Size
693 kB
Total Files
25