You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2018/06/26 12:16:00 UTC
[jira] [Resolved] (SOLR-12389) Support nested properties in cluster
props
[ https://issues.apache.org/jira/browse/SOLR-12389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noble Paul resolved SOLR-12389.
-------------------------------
Resolution: Fixed
Fix Version/s: master (8.0)
7.4
> Support nested properties in cluster props
> ------------------------------------------
>
> Key: SOLR-12389
> URL: https://issues.apache.org/jira/browse/SOLR-12389
> Project: Solr
> Issue Type: Sub-task
> Security Level: Public(Default Security Level. Issues are Public)
> Environment: cluster props API does not support nested objects .
>
>
> Reporter: Noble Paul
> Assignee: Noble Paul
> Priority: Major
> Fix For: 7.4, master (8.0)
>
>
> A new command is added to V2 endpoint to set deeply nested objects
> example 1:
> {code}
> $ curl http://localhost:8983/api/cluster -H 'Content-type: application/json' -d '
> { "set-obj-property": {
> "collectionDefaults" :{
> "numShards": 3,
> "nrtreplicas": "2 ,
> "tlogReplicas":3,
> "pullReplicas" : 2
> }}}'
> {code}
> example 2:
> unset the value of {{numShards}}
> {code}
> $ curl http://localhost:8983/api/cluster -H 'Content-type: application/json' -d '
> { "set-obj-property": {
> "collectionDefaults" :{
> "numShards": null
> }}}'
> {code}
> example 2:
> unset the value of {{numShards}}
> example 3:
> unset the entire {{collectionDefaults}} and set another value for another key all in one command
> {code}
> $ curl http://localhost:8983/api/cluster -H 'Content-type: application/json' -d '
> { "set-obj-property": {
> "autoAddReplicas" : true,
> "collectionDefaults" :null}}'
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org