lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Gerlowski (JIRA)" <>
Subject [jira] [Commented] (SOLR-11108) Shorten _default configset warning and use ConfigTool
Date Thu, 31 Aug 2017 03:09:00 GMT


Jason Gerlowski commented on SOLR-11108:

I set in to work on this, but I'm having trouble using the ConfigTool as the proposed new
warning message suggests:

[~/c/l/solr] $ bin/solr config -h

ERROR: config is not a valid command!

       where COMMAND is one of: start, stop, restart, status, healthcheck, create, create_core,
create_collection, delete, version, zk, auth, assert

  Standalone server example (start Solr running in the background on port 8984):

    ./solr start -p 8984

  SolrCloud example (start Solr running in SolrCloud mode using localhost:2181 to connect
to Zookeeper, with 1g max heap size and remote Java debug options enabled):

    ./solr start -c -m 1g -z localhost:2181 -a "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044"

Pass -help after any COMMAND to see command-specific usage information,
  such as:    ./solr start -help or ./solr stop -help

Taking a peek at {{bin/solr}} it does look like there's no plumbing that would allow {{bin/solr
config}} to work.  I assumed from Jan's comment above that "bin/solr config" would work, but
that it was missing support for a few options.  Maybe the implied first step is that ConfigTool
needs exposed from the control scripts in the first place.

> Shorten _default configset warning and use ConfigTool
> -----------------------------------------------------
>                 Key: SOLR-11108
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>    Affects Versions: 7.0
>            Reporter: Jan H√łydahl
>             Fix For: 7.1
> In SOLR-10920 a WARNING was added when creating a data driven collection with config-set
> That output from {{bin/solr}} is quite heavy:
> {noformat}
> 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"}}'
> {noformat}
>  Suggest this output instead, avoiding cURL:
> {noformat}
> 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
> {noformat}
> 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

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message