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

Shorten _default configset warning and use ConfigTool

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0
    • Fix Version/s: 7.3, 8.0
    • Component/s: scripts and tools
    • Labels:
      None

      Description

      In SOLR-10920 a WARNING was added when creating a data driven collection with config-set _default.

      That output from bin/solr is quite heavy:

      WARNING: Using _default configset. Data driven schema functionality is enabled by default, which is
               NOT RECOMMENDED for production use.
      
               To turn it off:
                  curl http://localhost:8983/solr/foo/config -d '{"set-user-property": {"update.autoCreateFields":"false"}}'
      

      Suggest this output instead, avoiding cURL:

      WARNING: Using _default configset with data driven schema functionality. NOT RECOMMENDED for production use.
               To turn off: bin/solr config -c mycoll -p myport -property update.autoCreateFields -value false
      

      We already have the ConfigTool in SolrCLI, but it needs to understand -c in addition to -collection and -p in addition to -solrUrl to be more familiar.

      Also suggest to move the printout from bin/solr and bin/solr.cmd to SolrCLI at the same time.

        Attachments

        1. SOLR-11108.patch
          7 kB
          Jason Gerlowski
        2. SOLR-11108.patch
          7 kB
          Jason Gerlowski

          Issue Links

            Activity

              People

              • Assignee:
                gerlowskija Jason Gerlowski
                Reporter:
                janhoy Jan H√łydahl
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: