Skip to content

Commit

Permalink
Update build-suggesters.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
anilthanki authored Nov 22, 2024
1 parent 6965e52 commit b6f00df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/build-suggesters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ exec 3>&1

status=0
for suggester in propertySuggesterNoHighlight bioentitySuggester propertySuggester; do
HTTP_STATUS=$(curl $SOLR_AUTH -w "%{http_code}" -o >(cat >&3) -s "http://${HOST}/solr/${COLLECTION}/suggest?suggest.dictionary=${suggester}&suggest.build=true")
HTTP_STATUS=$(curl $SOLR_AUTH \
-w "%{http_code}" \
-o >(cat >&3) \
-s \
"http://${HOST}/solr/${COLLECTION}/suggest?suggest.dictionary=${suggester}&suggest.build=true")

if [[ ! $HTTP_STATUS == 2* ]];
then
Expand Down

0 comments on commit b6f00df

Please sign in to comment.