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

Use a default configset and make the configName parameter optional.


    • Type: Improvement
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:


      This Jira's motivation is to improve the creating a collection experience better for users.

      To create a collection we need to specify a configName that needs to be present in ZK. When a new user is starting Solr why should he worry about having to know about configsets before he can can create a collection.

      When you create a collection using "bin/solr create" the script uploads a configset and references it. This is great. We should extend this idea to API users as well.

      So here is the rough outline of what I think we can do here:

      1. When you start solr , the bin script checks to see if "/configs/_baseConfigSet" znode is present . If not it uploads the "basic_configs".

      We can discuss if its the "basic_configs" or something other default config set.

      Also we can discuss the name for "/_baseConfigSet". Moving on though

      2. When a user creates a collection from the API admin/collections?action=CREATE&name=gettingstarted here is what we do :

      Use https://cwiki.apache.org/confluence/display/solr/ConfigSets+API to copy over the default config set to a configset with the name of the collection specified.

      collection.configName can truly be an optional parameter. If its specified we don't need to do this step.

      3. Have the bin scripts use this and remove the logic built in there to do the same thing.


        1. SOLR-10272.patch.gz
          72 kB
          Ishan Chattopadhyaya
        2. SOLR-10272.patch.gz
          73 kB
          Ishan Chattopadhyaya
        3. SOLR-10272.patch.gz
          81 kB
          Ishan Chattopadhyaya
        4. SOLR-10272.patch
          13 kB
          Ishan Chattopadhyaya

          Issue Links



              • Assignee:
                ichattopadhyaya Ishan Chattopadhyaya
                varunthacker Varun Thacker
              • Votes:
                0 Vote for this issue
                11 Start watching this issue


                • Created: