Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
utilities
Import Process CLI
Commits
13a5c632
Commit
13a5c632
authored
Jun 15, 2021
by
Jonas Waeber
Browse files
Add script to unpublish record set.
parent
4177d8b0
Changes
2
Show whitespace changes
Inline
Side-by-side
utilities/elastic_scripts/unpublish_record_set.json
0 → 100644
View file @
13a5c632
{
"query"
:
{
"term"
:
{
"id"
:
"klu-002"
}
},
"script"
:
{
"source"
:
"ctx._source.published = 'false'"
,
"lang"
:
"painless"
}
}
utilities/elastic_scripts/unpublish_record_set.sh
0 → 100644
View file @
13a5c632
curl
-X
POST
-H
'Content-Type: application/json'
-d
"@unpublish_record_set.json"
"localhost:8080/record-sets-v7/_update_by_query"
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