Skip to content

Commit 4f99712

Browse files
committed
Update node example
1 parent c682a28 commit 4f99712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/node/search_example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ const addDataset = async () => {
2323
const index = await client.getIndex('movies')
2424
const resp = await index.search('Avengers', {
2525
limit: 1,
26-
attributesToHighlight: 'title',
27-
})
26+
attributesToHighlight: ['title'],
27+
}, 'GET')
2828
console.log({ resp })
2929
console.log({ hit: resp.hits[0] })
3030
})()

0 commit comments

Comments
 (0)