Skip to content

Commit a23698d

Browse files
committed
build: Initialize tmp index settings
1 parent fb057f1 commit a23698d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bin/sync-algolia.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,11 @@ function syncAlgolia() {
2121
const index = client.initIndex('icons');
2222
const indexTmp = client.initIndex('icons_tmp');
2323

24-
index.setSettings({
24+
indexTmp.setSettings({
2525
searchableAttributes: ['unordered(name)', 'unordered(tags)'],
2626
customRanking: ['asc(name)'],
2727
});
2828

29-
console.log('Copying target index settings into temporary index...');
30-
client.copyIndex(index.indexName, indexTmp.indexName, ['settings'], err => {
31-
if (err) throw err;
32-
});
33-
3429
const records = Object.keys(icons).map(name => ({
3530
name,
3631
tags: tags[name] || [],

0 commit comments

Comments
 (0)