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)
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.