This is an automated email from the ASF dual-hosted git repository.

gerlowskija pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 8e757c0d735 SOLR-16391: Update ref-guide v2 create-coll syntax
8e757c0d735 is described below

commit 8e757c0d7350f2e5df41d82f44ca65c4a1fe53f3
Author: Jason Gerlowski <[email protected]>
AuthorDate: Wed Apr 19 13:58:59 2023 -0400

    SOLR-16391: Update ref-guide v2 create-coll syntax
    
    A prior commit slightly tweaked the format of the v2 "crete collection"
    API, and updated the ref-guide in a few places.  But a few others were
    missed.  This commit corrects this and fixes the remaining locations.
---
 .../modules/configuration-guide/pages/property-substitution.adoc  | 2 +-
 .../modules/getting-started/pages/tutorial-five-minutes.adoc      | 8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git 
a/solr/solr-ref-guide/modules/configuration-guide/pages/property-substitution.adoc
 
b/solr/solr-ref-guide/modules/configuration-guide/pages/property-substitution.adoc
index e70df746579..21c6cebd247 100644
--- 
a/solr/solr-ref-guide/modules/configuration-guide/pages/property-substitution.adoc
+++ 
b/solr/solr-ref-guide/modules/configuration-guide/pages/property-substitution.adoc
@@ -96,7 +96,7 @@ 
http://localhost:8983/solr/admin/collections?action=CREATE&name=gettingstarted&n
 
 [source,bash]
 ----
-curl -X POST -H 'Content-type: application/json' -d '{"create": {"name": 
"gettingstarted", "numShards": "1", "property.my.custom.prop": "edismax"}}' 
http://localhost:8983/api/collections
+curl -X POST -H 'Content-type: application/json' -d '{"name": 
"gettingstarted", "numShards": 1, "properties": {"my.custom.prop": "edismax"}}' 
http://localhost:8983/api/collections
 ----
 ====
 --
diff --git 
a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-five-minutes.adoc 
b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-five-minutes.adoc
index 9bf8f6a42b5..fa5ff5922da 100644
--- 
a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-five-minutes.adoc
+++ 
b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-five-minutes.adoc
@@ -40,11 +40,9 @@ $ curl --request POST \
 --url http://localhost:8983/api/collections \
 --header 'Content-Type: application/json' \
 --data '{
-  "create": {
-    "name": "techproducts",
-    "numShards": 1,
-    "replicationFactor": 1
-  }
+  "name": "techproducts",
+  "numShards": 1,
+  "replicationFactor": 1
 }'
 ----
 

Reply via email to