Commit fb057f1f authored by Cole Bemis's avatar Cole Bemis

build: Initialize algolia settings in script

parent 21bb9fe6
......@@ -21,6 +21,11 @@ function syncAlgolia() {
const index = client.initIndex('icons');
const indexTmp = client.initIndex('icons_tmp');
index.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;
......
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