Skip to content

Commit

Permalink
FIX - fixed issue in script encode-keyword-as-anchor.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
GeryNi committed Nov 21, 2024
1 parent e72bf1e commit 3dace18
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions metawal-utils/encode-keyword-as-anchor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ curl "$SERVER/srv/api/me" \
-H "X-XSRF-TOKEN: $TOKEN" \
-H "Cookie: XSRF-TOKEN=$TOKEN; JSESSIONID=$JSESSIONID"

QUERY='+uuid:"b5b34ee9-9513-4298-8cd0-2968a5ce4003"'
#QUERY='*:*'
#QUERY='+uuid:"b5b34ee9-9513-4298-8cd0-2968a5ce4003"'
QUERY='*:*'
FROM=0
SIZE=5000
read -r -d '' ESQUERY << EOF
Expand All @@ -47,7 +47,7 @@ EOF
RAWQUERY=`echo ${ESQUERY}`
echo "RAWQUERY: $RAWQUERY"

curl --insecure --verbose $AUTH "$SERVER/srv/api/search/records/_search?bucket=s101" \
curl --insecure --verbose $AUTH "$SERVER/srv/api/search/records/_search" \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: eng' \
-H "X-XSRF-TOKEN: $TOKEN" \
Expand All @@ -73,9 +73,10 @@ for hit in $(jq -r '.hits.hits[] | @base64' results.json); do
echo "progress: $current/$total"
echo "executing processing for $uuid"

curl --insecure $AUTH "$SERVER/srv/api/processes/encode-keyword-as-anchor?uuids="+uuid+"&applyUpdateFixedInfo=true&index=true" \

curl --insecure $AUTH "$SERVER/srv/api/processes/encode-keyword-as-anchor?uuids=$uuid&applyUpdateFixedInfo=true&index=true" \
-X 'POST' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept: application/json' \
-H 'accept-language: eng' \
-H "X-XSRF-TOKEN: $TOKEN" \
-H "Cookie: XSRF-TOKEN=$TOKEN; JSESSIONID=$JSESSIONID" \
Expand Down

0 comments on commit 3dace18

Please sign in to comment.