mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
build: Initialize algolia settings in script
This commit is contained in:
parent
21bb9fe6d6
commit
fb057f1f94
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user