Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2675

Support core properties when creating cores via REST API (CoreAdminHandler)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4, 4.0-ALPHA
    • Component/s: multicore
    • Labels:
      None

      Description

      When crating cores through solr.xml, I am able to specify custom
      properties, to be referenced in solrconfig.xml. For example:

      <cores adminPath="/admin/cores" defaultCoreName="master">
      <core name="master" instanceDir="core1" shard="shard1" collection="myconf" >
      <property name="enable.master" value="true" />
      </core>
      <core name="slave" instanceDir="core2" shard="shard2" collection="myconf">
      <property name="enable.slave" value="true" />
      <property name="masterHost" value="node2:8983" />
      </core>
      </cores>

      There does not seem a way to specify such properties when creating cores through the CoreAdminHandler request.

      CoreAdminHandler#handleCreateAction always calls dcore.setCoreProperties(null);

        Attachments

        1. coreadmin.patch
          2 kB
          Yury Kats
        2. SOLR-2675.patch
          7 kB
          Hoss Man

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              ykats Yury Kats
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: