smui
smui copied to clipboard
Change the Solr rule deployment script to support the Querqy 5 rule API
The example smui2solr.sh was still using ssh based file upload to deploy Querqy rules, there is a new way with Querqy 5: the Querqy rewriter API.
- New smui2solr.sh deployment script that uses the Querqy 5 API. It is triggered with 4 parameters
- the path to the common rules file
- the path to the replace rules file
- the target system, i.e. PRELIVE or LIVE
- the Solr core or collection name (taken from the rules collection)
-
The script expects all other configuration as environment variables:
- SMUI_QUERQY_REWRITER_COMMON_RULES: the name of the common rules rewriter the rules should be deployed to
- SMUI_QUERQY_REWRITER_COMMON_RULES_DECOMPOUND: the name of the common rules rewriter for decompound rules (required, if decompound rules shall be exported separately)
- SMUI_QUERQY_REWRITER_REPLACE: the name of the replace rules rewriter (required, if spelling/replacement rules are used)
- SMUI_2SOLR_SOLR_HOST or SMUI_DEPLOY_LIVE_SOLR_HOST: the live Solr host
- SMUI_DEPLOY_PRELIVE_SOLR_HOST: the prelive Solr host, if prelive deployment is enabled
- SMUI_DEPLOY_(PRE)LIVE_SOLR_(USER|PASSWORD): the live/prelive user/password if Solr basic authentication is used
- SMUI_DEPLOY_PRELIVE_SOLR_ALLOW_INSECURE: if the --insecure flag should be used when authenticating (i.e. no cert validation)
-
Removing all configuration related to the target file names of the common rules, optional decompound common rules and replace rules file names as they are no longer copied to a target.
-
Changing the decision to trigger a GIT based rule deployment to a dedicated toggle / environment variable SMUI_DEPLOYMENT_GIT_ENABLE which needs to be set to true. No longer relying on the magic name "GIT" as the rules file name on the deployment target.
-
Add jq to SMUI Docker image to facilitate JSON based Querqy request recreation in smui2solr.sh script.