Skip to content

Commit

Permalink
Merge branch 'rpb-109-index' of https://github.com/hbz/lobid-gnd into…
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Jan 26, 2024
2 parents cfafbe8 + 85b1aa6 commit b9b8565
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion transformAndIndexRppd.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
#!/bin/bash
set -uo pipefail # See http://redsymbol.net/articles/unofficial-bash-strict-mode/

TIME=$(date "+%Y%m%d-%H%M")
INDEX="gnd-rppd-$TIME"
ALIAS="gnd-rppd-test"

cd ../rpb
bash transformRppd.sh
cd -
sbt "runMain apps.Index baseline"
sbt -Dindex.prod.name=$INDEX "runMain apps.Index baseline"
curl -X POST "weywot3:9200/_aliases?pretty" -H 'Content-Type: application/json' -d'
{
"actions" : [
{ "remove" : { "index" : "*", "alias" : "'"$ALIAS"'" } },
{ "add" : { "index" : "'"$INDEX"'", "alias" : "'"$ALIAS"'" } }
]
}
'
curl -S -s -o /dev/null https://rppd.lobid.org

0 comments on commit b9b8565

Please sign in to comment.