diff --git a/examples/node/search_example.js b/examples/node/search_example.js index b5d9ae2a9..5e27e8b87 100644 --- a/examples/node/search_example.js +++ b/examples/node/search_example.js @@ -23,8 +23,8 @@ const addDataset = async () => { const index = await client.getIndex('movies') const resp = await index.search('Avengers', { limit: 1, - attributesToHighlight: 'title', - }) + attributesToHighlight: ['title'], + }, 'GET') console.log({ resp }) console.log({ hit: resp.hits[0] }) })()