janhoy commented on code in PR #4942:
URL: https://github.com/apache/solr/pull/4942#discussion_r4104147458
##########
solr/solr-ref-guide/modules/indexing-guide/pages/schema-api.adoc:
##########
@@ -636,31 +639,32 @@ curl -X POST -H 'Content-type:application/json'
--data-binary '{
}' http://localhost:8983/solr/techproducts/schema
----
-Bulk schema operations are also supported in Solr's v2 API, using a slightly
different syntax.
+Bulk schema operations are also supported in Solr's v2 API, using a different
endpoint and syntax.
+The v2 bulk endpoint is `POST /api/collections/_collection_/schema/bulk`; the
`/schema` path itself only supports `GET` in v2.
Individual operations are specified as elements within a list, with the
operation name (e.g. `add-field`, `delete-field-type`) specified as a
`"operationType"` property on each operation object:
[source,bash]
----
curl -X POST -H 'Content-type:application/json' --data-binary '
[
{
- "operationType": "add-field"
+ "operationType": "add-field",
Review Comment:
Noggit won't complain even if you feed it a rat :) Which is bad, and we
should not recommend broken JSON in our docs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]