From a23698d5befa6af7cf8d69cf5f35c62b3965e82f Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Fri, 18 May 2018 18:08:14 -0700 Subject: [PATCH] build: Initialize tmp index settings --- bin/sync-algolia.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/sync-algolia.js b/bin/sync-algolia.js index 4c9547d..8e4ac84 100644 --- a/bin/sync-algolia.js +++ b/bin/sync-algolia.js @@ -21,16 +21,11 @@ function syncAlgolia() { const index = client.initIndex('icons'); const indexTmp = client.initIndex('icons_tmp'); - index.setSettings({ + indexTmp.setSettings({ searchableAttributes: ['unordered(name)', 'unordered(tags)'], customRanking: ['asc(name)'], }); - console.log('Copying target index settings into temporary index...'); - client.copyIndex(index.indexName, indexTmp.indexName, ['settings'], err => { - if (err) throw err; - }); - const records = Object.keys(icons).map(name => ({ name, tags: tags[name] || [],