Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
feather
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
feather
Commits
21bb9fe6
Commit
21bb9fe6
authored
May 18, 2018
by
Cole Bemis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Only copy settings to tmp index
parent
c63f478f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
sync-algolia.js
bin/sync-algolia.js
+4
-9
No files found.
bin/sync-algolia.js
View file @
21bb9fe6
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment