You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2020/10/22 15:22:34 UTC
[lucene-solr] branch branch_8x updated: Add example for ConfigSet
create with properties map. (#2005)
This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new ea83868 Add example for ConfigSet create with properties map. (#2005)
ea83868 is described below
commit ea83868f7447ce8cb5ea2c765399286a6a13bd2a
Author: Houston Putman <ho...@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
+----
====
--