Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Add example for ConfigSet create with properties map. (#2005)

Houston Putman62de8f9f4633
diff --git a/solr/solr-ref-guide/src/configsets-api.adoc b/solr/solr-ref-guide/src/configsets-api.adoc
index 8ca2103c0a6..820cb39942f 100644
--- a/solr/solr-ref-guide/src/configsets-api.adoc
+++ b/solr/solr-ref-guide/src/configsets-api.adoc
@@ -181,6 +181,20 @@ curl -X POST -H 'Content-type: application/json' -d '{
"configSetProp.immutable": "false"}}'
http://localhost:8983/api/cluster/configs?omitHeader=true
----
+
+With the v2 API, ConfigSet properties can also be provided via the `properties` map:
+
+[source,bash]
+----
+curl -X POST -H 'Content-type: application/json' -d '{
+ "create":{
+ "name": "myConfigSet",
+ "baseConfigSet": "predefinedTemplate",
+ "properties": {
+ "immutable": "false"
+ }}}'
+ http://localhost:8983/api/cluster/configs?omitHeader=true
+----
====
--