From df3da173c735fb1f4bbf0cd271a26b79121e9a4f Mon Sep 17 00:00:00 2001 From: Charlotte Vermandel Date: Mon, 27 Jul 2020 20:03:47 +0200 Subject: [PATCH] Update node example --- examples/node/search_example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] }) })()