From commits-return-119197-apmail-lucene-commits-archive=www.apache.org@lucene.apache.org Thu Oct 22 15:24:01 2020 Return-Path: X-Original-To: apmail-lucene-commits-archive@www.apache.org Delivered-To: apmail-lucene-commits-archive@www.apache.org Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with ESMTP id 677D71A69B for ; Thu, 22 Oct 2020 15:24:01 +0000 (UTC) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id 156C8124A41 for ; Thu, 22 Oct 2020 15:24:01 +0000 (UTC) Received: (qmail 70948 invoked by uid 500); 22 Oct 2020 15:24:00 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 70939 invoked by uid 99); 22 Oct 2020 15:24:00 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2020 15:24:00 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 8DC5081783; Thu, 22 Oct 2020 15:24:00 +0000 (UTC) Date: Thu, 22 Oct 2020 15:23:59 +0000 To: "commits@lucene.apache.org" Subject: [lucene-solr] branch branch_8_7 updated: Add example for ConfigSet create with properties map. (#2005) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <160338023932.11744.4108413692389978657@gitbox.apache.org> From: houston@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: lucene-solr X-Git-Refname: refs/heads/branch_8_7 X-Git-Reftype: branch X-Git-Oldrev: 6e5e247abcafd6a38590b2835fb60e851cf215db X-Git-Newrev: 150b10eea7a880479f08ce592db3f3a3049ad7e9 X-Git-Rev: 150b10eea7a880479f08ce592db3f3a3049ad7e9 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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 +---- ==== --