Skip to content

Commit

Permalink
Update node example
Browse files Browse the repository at this point in the history
  • Loading branch information
bidoubiwa committed Jul 28, 2020
1 parent ec959fc commit 88bc581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/node/search_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] })
})()

0 comments on commit 88bc581

Please sign in to comment.