From 21bb9fe6d63fed11ee337bef48ac45e0444df5a9 Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Fri, 18 May 2018 17:55:24 -0700 Subject: [PATCH] build: Only copy settings to tmp index --- bin/sync-algolia.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/bin/sync-algolia.js b/bin/sync-algolia.js index 42ac555..00f4683 100644 --- a/bin/sync-algolia.js +++ b/bin/sync-algolia.js @@ -21,15 +21,10 @@ function syncAlgolia() { const index = client.initIndex('icons'); const indexTmp = client.initIndex('icons_tmp'); - console.log('Copying target index into temporary index...'); - client.copyIndex( - index.indexName, - indexTmp.indexName, - ['settings', 'synonyms', 'rules'], - err => { - if (err) throw err; - }, - ); + 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,