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

Support properties in configuration files

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.3
    • None
    • None

    Description

      Initially suggested by Hoss at https://issues.apache.org/jira/browse/SOLR-350?focusedCommentId=12562834#action_12562834 and taken forward by Henri in SOLR-646

      1. Allows users to define global as well as core-specific properties in solr.xml which can be used in solrconfig.xml and schema.xml
        <solr persistent="false">
        
          <property name="var" value="value" />
        
          <cores adminPath="/admin/cores">
            <core name="core0" instanceDir="core0">
              <property name="var" value="value" />
            </core>
            <core name="core1" instanceDir="core1" />
          </cores>
        </solr>
        
      2. The following core-specific properties will be added automatically:
        • solr.core.instanceDir
        • solr.core.name
        • solr.core.configName
        • solr.core.schemaName
      3. The variable substitution will be done in this fall-back order – core-specific, implicit, global, system properties.
      4. The properties defined in solr.xml should also be persisted back as is (without evaluation).

      Attachments

        1. SOLR-716.patch
          32 kB
          Shalin Shekhar Mangar
        2. SOLR-716.patch
          31 kB
          Shalin Shekhar Mangar
        3. SOLR-716.patch
          32 kB
          Shalin Shekhar Mangar
        4. solr-716.patch
          36 kB
          Henri Biestro
        5. solr-716.patch
          43 kB
          Henri Biestro

        Issue Links

          Activity

            People

              shalin Shalin Shekhar Mangar
              shalin Shalin Shekhar Mangar
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: