dsmiley commented on code in PR #1049:
URL: https://github.com/apache/solr/pull/1049#discussion_r991390487


##########
solr/solr-ref-guide/modules/deployment-guide/pages/replica-management.adoc:
##########
@@ -610,14 +610,9 @@ 
http://localhost:8983/solr/admin/collections?action=ADDREPLICAPROP&collection=te
 
 [source,bash]
 ----
-curl -X POST http://localhost:8983/api/collections/techproducts -H 
'Content-Type: application/json' -d '
+curl -X PUT 
http://localhost:8983/api/collections/techproducts/shards/shard1/replicas/core_node2/properties/preferredLeader
 -H 'Content-Type: application/json' -d '
   {
-    "add-replica-property":{
-      "shard":"shard1",
-      "replica":"core_node2",
-      "name":"preferredLeader",
-      "value": "true"
-    }
+    "value": "true"
   }

Review Comment:
   @gerlowskija The wrapper JSON seems unnecessary & superfluous for such a 
simple name=value.  Can't we support just the HTTP payload of "true" ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to