Skip to content

Commit

Permalink
Log Elasticsearch indexing responses (RPB-202)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Nov 29, 2024
1 parent 87efed9 commit 46bcc6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transformAndIndex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ sbt "runMain rpb.ETL conf/rpb-titel-to-lobid.flux index=$INDEX"
# Index to Elasticsearch:
unset http_proxy # for posting to weywot3
curl -XPUT -H "Content-Type: application/json" weywot3:9200/$INDEX?pretty -d @../lobid-resources-rpb/src/main/resources/alma/index-config.json
rm conf/output/es-curl-post.log
for filename in conf/output/bulk/bulk-*.ndjson
do
echo "$filename"
curl -XPOST --silent --show-error --fail --output /dev/null --header 'Content-Type: application/x-ndjson' --data-binary @"$filename" 'weywot3:9200/_bulk'
curl -XPOST --silent --show-error --fail --header 'Content-Type: application/x-ndjson' --data-binary @"$filename" 'weywot3:9200/_bulk' >> conf/output/es-curl-post.log
done
curl -X POST "weywot3:9200/_aliases?pretty" -H 'Content-Type: application/json' -d'
{
Expand Down

0 comments on commit 46bcc6b

Please sign in to comment.