Hello,
I want to trigger meilisearch update
Steps :
1- connect to the client
2- update documents with the json
I am cannot figure out why ti doesnot trigger any thing on meilisearch server ?
Is it because it is async process ?
How to deal with this kind of process ?
How to capture error ? I know if there is an error checking this end point periodically where 102 is return by the async function below.
http://localhost:7700/tasks/102
If there is an error key inside it I want to trigger some actions.
const { MeiliSearch } = require('meilisearch')
const client = new MeiliSearch({ host: 'http://localhost:7700' })
client.index('movies').addDocuments(items)
.then((res) => console.log(res))