Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27724

Remove Solr 6.6 deprecated schema field

    XMLWordPrintable

Details

    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=collection1

      ERROR: 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:

      1. Change image version in doc/docker-compose/Dockerfile-solr from solr:6-alpine to solr:6.5-alpine
      2. Remove last line from ezplatform-solr-search-engine/lib/Resources/config/solr/schema.xml
        <defaultSearchField>id</defaultSearchField>
        

      Attachments

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: