lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Gerlowski (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-11108) Shorten _default configset warning and use ConfigTool
Date Sat, 02 Sep 2017 15:08:02 GMT

    [ https://issues.apache.org/jira/browse/SOLR-11108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16151523#comment-16151523
] 

Jason Gerlowski edited comment on SOLR-11108 at 9/2/17 3:07 PM:
----------------------------------------------------------------

Attached a patch with the approach outlined by Jan above.  Some notes:

- tests and precommit pass on Linux; I aim to test it on Windows later today.
- Along with a {{-port}} option, I also added a {{--scheme}} option for specifying http/https.
 If users need more flexibility, they can ditch scheme/port and specify the endpoint with
the {{solrUrl}} argument instead.
- With the argument parsing entirely in Java-land, ConfigTool isn't smart enough currently
to know about any values specified in solr.in.sh (AFAIK).  Really speaks to the value of SOLR-7871
so we can move that code into Java-land too.



was (Author: gerlowskija):
Attached a patch with the approach outlined by Jan above.  Some notes:

- tests and precommit pass on Linux; I aim to test it on Windows later today.
- Along with a {{--port}} option, I also added a {{--scheme}} option for specifying http/https.
 If users need more flexibility, they can ditch scheme/port and specify the endpoint with
the {{solrUrl}} argument instead.
- With the argument parsing entirely in Java-land, ConfigTool isn't smart enough currently
to know about any values specified in solr.in.sh (AFAIK).  Really speaks to the value of SOLR-7871
so we can move that code into Java-land too.


> Shorten _default configset warning and use ConfigTool
> -----------------------------------------------------
>
>                 Key: SOLR-11108
>                 URL: https://issues.apache.org/jira/browse/SOLR-11108
>             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
>
>         Attachments: SOLR-11108.patch
>
>
> 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:
> {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
time.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message