Skip to content

Commit

Permalink
Allow to run solr-indexing without an existing collection #289: fixin…
Browse files Browse the repository at this point in the history
…g the issue around 'validation' Solr instance
  • Loading branch information
pkiraly committed Nov 26, 2023
1 parent f05aca5 commit d11c30f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions common-script
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,9 @@ EOF
rm ${OUTPUT_DIR}/id-groupid_noheader.csv
fi

SOLR_FOR_SCORES_URL=$(echo $TYPE_PARAMS | grep -P -o --regexp='--solrForScoresUrl \K([^ ]+)')
SOLR_FOR_SCORES_URL=$(echo $TYPE_PARAMS | grep -P -o --regexp='--solrForScoresUrl \K([^ ]+)' || true)
ONLY_INDEX=$(echo ${PARAMS} | grep -c -P -e '--onlyIndex' || true)


if [[ "${HAS_GROUP_PARAM}" == "0" ]]; then
log "index"
sqlite3 ${OUTPUT_DIR}/qa_catalogue.sqlite < scripts/sqlite/modify-tables.sql &>> ${PREFIX}/sqlite.log
Expand Down

0 comments on commit d11c30f

Please sign in to comment.