wodby/solr

Core from config set not created

gambry opened this issue · 3 comments

Hi,

The Solr container doesn't create the default core from Search API Solr config set as described in the README.md file.

I've got the solr service setup in this way:

image: wodby/solr:$SOLR_TAG
container_name: "${PROJECT_NAME}_solr"
environment:
  SOLR_DEFAULT_CONFIG_SET: $SOLR_CONFIG_SET
  SOLR_HEAP: 1024m

Where in my .env file $SOLR_TAG is 7-4.7.4 and $SOLR_CONFIG_SET is search_api_solr_4.1.6.

The Solr instance is up and running, I can connect to it but there are no cores. Also opening a console into the container and ls /opt/solr/server/solr/configsets lists all search_api_solr config sets one would expect.

I had to manually fire in the browser http://solr.myproject-docker-host:8000/solr/admin/cores?action=CREATE&name=default&configSet=search_api_solr_4.1.6&instanceDir=default in order for the core to be created.

Correct me if I'm wrong but README doesn't say we create a default core automatically

@csandanov good point, I got mixed up between the README and the https://wodby.com/docs/1.0/stacks/solr-drupal/ docs. I presume that's the old image and so in the generic wodby/solr the default core is not created anymore?

In that case just for the sake of documentation, together with setting SOLR_DEFAULT_CONFIG_SET to the desired version a default core can be created with docker-compose exec solr sh -c "make create core=[core name] -f /usr/local/bin/actions.mk". Please feel free to correct me if I'm wrong.

Thanks again for your help!