Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0, 6.0
    • None
    • None

    Description

      There are a bunch of properties in solrconfig.xml which users want to edit. We will attack them first

      These properties will be persisted to a separate file called config.json (or whatever file). Instead of saving in the same format we will have well known properties which users can directly edit

      updateHandler.autoCommit.maxDocs
      query.filterCache.initialSize
      

      The api will be modeled around the bulk schema API

      curl http://localhost:8983/solr/collection1/config -H 'Content-type:application/json'  -d '{
      "set-property" : {"updateHandler.autoCommit.maxDocs":5},
      "unset-property": "updateHandler.autoCommit.maxDocs"
      }'
      
      //or use this to set ${mypropname} values
      curl http://localhost:8983/solr/collection1/config -H 'Content-type:application/json'  -d '{
      "set-user-property" : {"mypropname":"my_prop_val"},
      "unset-user-property":{"mypropname"}
      }'
      
      

      The values stored in the config.json will always take precedence and will be applied after loading solrconfig.xml.

      • An http GET on /config path will give the real config that is applied .
      • An http GET of/config/overlay gives out the content of the configOverlay.json
      • /config/<component-name> gives only the child of the same name from /config . example: /config/requestHandler , /config/searchComponent

      Attachments

        1. SOLR-6533.patch
          23 kB
          Noble Paul
        2. SOLR-6533.patch
          38 kB
          Noble Paul
        3. SOLR-6533.patch
          44 kB
          Noble Paul
        4. SOLR-6533.patch
          55 kB
          Noble Paul
        5. SOLR-6533.patch
          76 kB
          Noble Paul
        6. SOLR-6533.patch
          92 kB
          Noble Paul
        7. SOLR-6533.patch
          99 kB
          Noble Paul
        8. SOLR-6533.patch
          97 kB
          Noble Paul
        9. SOLR-6533.patch
          34 kB
          Noble Paul
        10. SOLR-6533.patch
          35 kB
          Noble Paul
        11. SOLR-6533.patch
          34 kB
          Noble Paul

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              noble.paul Noble Paul
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: