sudovanilla-website/search.js

13 lines
536 B
JavaScript
Raw Normal View History

2024-05-13 22:34:06 -05:00
import { MeiliSearch } from 'meilisearch'
import MinPluto from './minpluto-search.json'
import Zorn from './zorn-search.json'
const client = new MeiliSearch({
host: process.env.MeilisearchHost,
apiKey: process.env.MeilisearchApiKey
})
client.index('MinPluto').delete(MinPluto).then((res) => console.log(res))
client.index('MinPluto').addDocuments(MinPluto).then((res) => console.log(res))
client.index('Zorn').delete(Zorn).then((res) => console.log(res))
client.index('Zorn').addDocuments(Zorn).then((res) => console.log(res))