const si = require('search-index')
// initialize an index
const { PUT, QUERY } = await si()
// add documents to the index
await PUT( /* objects */ )
// read documents from the index
const results = await QUERY( /* query */ )
const si = require('search-index')
// initialize an index
const { PUT, QUERY } = await si()
// add documents to the index
await PUT( /* objects */ )
// read documents from the index
const results = await QUERY( /* query */ )