Details
-
Bug
-
Resolution: Fixed
-
High
-
1.10.1
-
None
Description
If you try to run Solr with Docker using docker-compose, dockercompose_solr_1 container will be immediately closed right after creation.
Information from Docker log explains the issue:
Creating new core 'collection1' using command:
http://localhost:8983/solr/admin/cores?action=CREATE&name=collection1&instanceDir=collection1ERROR: Error CREATEing SolrCore 'collection1': Unable to create core [collection1] Caused by: defaultSearchField has been deprecated and is incompatible with configs with luceneMatchVersion >= 6.6.0. Use 'df' on requests instead.
Solr documentation says:
It is preferable to not use or rely on this setting; instead the request handler or query LocalParams for a search should specify the default field(s) to search on. This setting here can be omitted and it is being considered for deprecation.
There are two ways to fix this issue:
- Change image version in doc/docker-compose/Dockerfile-solr from solr:6-alpine to solr:6.5-alpine
- Remove last line from ezplatform-solr-search-engine/lib/Resources/config/solr/schema.xml
<defaultSearchField>id</defaultSearchField>