lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hous...@apache.org
Subject [lucene-solr] branch branch_8_7 updated: Add example for ConfigSet create with properties map. (#2005)
Date Thu, 22 Oct 2020 15:23:59 GMT
This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch branch_8_7
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8_7 by this push:
     new 150b10e  Add example for ConfigSet create with properties map. (#2005)
150b10e is described below

commit 150b10eea7a880479f08ce592db3f3a3049ad7e9
Author: Houston Putman <houston@apache.org>
AuthorDate: Thu Oct 22 11:20:33 2020 -0400

    Add example for ConfigSet create with properties map. (#2005)
---
 solr/solr-ref-guide/src/configsets-api.adoc | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/solr/solr-ref-guide/src/configsets-api.adoc b/solr/solr-ref-guide/src/configsets-api.adoc
index 06a9337..9fc328a 100644
--- a/solr/solr-ref-guide/src/configsets-api.adoc
+++ b/solr/solr-ref-guide/src/configsets-api.adoc
@@ -182,6 +182,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
+----
 ====
 --
 


Mime
View raw message