Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16391: Update ref-guide v2 create-coll syntax

Jason Gerlowskib2f7f4ddb48c
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
}'
----