Skip to content

Commit

Permalink
Merge pull request #24 from continuousphp/feature/solr-import-doc
Browse files Browse the repository at this point in the history
add solr documentation for data import
  • Loading branch information
chris-continuous authored Apr 10, 2020
2 parents 2205048 + ef26b7a commit f1f41f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/solr.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,15 @@ environment variable `CPHP_SERVICE_SOLR = 8.0` to the Behat configuration.
<td>Port</td><td>8983</td>
</tr>
</table>

## 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 `CPHP_PATH_SOLR_CONFIG=solr/mydata`.

You can choose your core name (facultative) using `CPHP_SOLR_CORE_NAME=mycore`. Default value is 'core0'.

0 comments on commit f1f41f7

Please sign in to comment.