Commit 21bb9fe6 authored by Cole Bemis's avatar Cole Bemis

build: Only copy settings to tmp index

parent c63f478f
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment