SolR is supported by continuousphp.
SolR containers are available for each activity in your build. To enable one of them, simply add the environment
CPHP_SERVICE_SOLR with the desired SolR version as value to your pipeline configuration. Available versions are :
E.g. if you need
SolR 8.0 in your Behat tests, go to the Testing Settings (step 2 of the Pipeline) and add the
CPHP_SERVICE_SOLR = 8.0 to the Behat configuration.
Connecting to SolR¶
Import your own configuration¶
Continuous PHP provides possibility to import your own configuration and datas.
For that, we create a new core at SolR start up.
Fist, put a directory with your core config into your repository. We'll copy and activate it in your service contianer.
Declare this repository in your pipeline using
CPHP_PATH_SOLR_CONFIG environement variable.
Put as value your directory's relative path like
You can choose your core name (facultative) using
CPHP_SOLR_CORE_NAME=mycore. Default value is 'core0'.