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

asf-gitbox-commits pushed a commit to branch branch_10_1
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 18455aac5ae5337f5d55eee54ad32b8288dec801
Author: Serhiy Bzhezytskyy <[email protected]>
AuthorDate: Sun Oct 4 16:15:46 2026 +0300

    SOLR-18460: Drop the redundant -X GET from curl commands in the Ref Guide 
(#5007)
    
    Co-authored-by: Eric Pugh <[email protected]>
    (cherry picked from commit e2cdb2d7e8ae0be4cf6cf0606206c67d89e7278f)
    (cherry picked from commit dbd1c54de51e54364ffe86391f295f03a31f91de)
---
 .../configuration-guide/pages/collections-api.adoc       |  2 +-
 .../configuration-guide/pages/configsets-api.adoc        |  6 +++---
 .../modules/configuration-guide/pages/coreadmin-api.adoc | 14 +++++++-------
 .../modules/deployment-guide/pages/alias-management.adoc | 14 +++++++-------
 .../deployment-guide/pages/cluster-node-management.adoc  | 14 +++++++-------
 .../deployment-guide/pages/collection-management.adoc    | 10 +++++-----
 .../deployment-guide/pages/configuring-logging.adoc      |  2 +-
 .../modules/deployment-guide/pages/task-management.adoc  | 10 +++++-----
 .../modules/getting-started/pages/tutorial-opennlp.adoc  |  4 ++--
 .../modules/indexing-guide/pages/schema-api.adoc         | 16 ++++++++--------
 .../modules/query-guide/pages/json-query-dsl.adoc        |  4 ++--
 11 files changed, 48 insertions(+), 48 deletions(-)

diff --git 
a/solr/solr-ref-guide/modules/configuration-guide/pages/collections-api.adoc 
b/solr/solr-ref-guide/modules/configuration-guide/pages/collections-api.adoc
index c2406b59788..57597e9b847 100644
--- a/solr/solr-ref-guide/modules/configuration-guide/pages/collections-api.adoc
+++ b/solr/solr-ref-guide/modules/configuration-guide/pages/collections-api.adoc
@@ -117,7 +117,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cluster/commands/1000
+curl http://localhost:8983/api/cluster/commands/1000
 ----
 ====
 ======
diff --git 
a/solr/solr-ref-guide/modules/configuration-guide/pages/configsets-api.adoc 
b/solr/solr-ref-guide/modules/configuration-guide/pages/configsets-api.adoc
index f5afc5e984a..e7373f7c9de 100644
--- a/solr/solr-ref-guide/modules/configuration-guide/pages/configsets-api.adoc
+++ b/solr/solr-ref-guide/modules/configuration-guide/pages/configsets-api.adoc
@@ -119,7 +119,7 @@ With the v2 API, use a `GET` request to 
`/configsets/__config_name__/files`:
 
 [source,bash]
 ----
-curl -X GET -o myConfigSet.zip 
"http://localhost:8983/api/configsets/myConfigSet/files";
+curl -o myConfigSet.zip 
"http://localhost:8983/api/configsets/myConfigSet/files";
 ----
 
 The configset will be downloaded as a ZIP file that can be extracted and used 
locally, or re-uploaded to another Solr instance.
@@ -330,14 +330,14 @@ Use a `GET` request to 
`/api/configsets/\{configSetName}/files/\{filePath}`:
 
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/api/configsets/myConfigSet/files/solrconfig.xml";
+curl "http://localhost:8983/api/configsets/myConfigSet/files/solrconfig.xml";
 ----
 
 For nested files within the configset:
 
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/api/configsets/myConfigSet/files/lang/stopwords_en.txt";
+curl 
"http://localhost:8983/api/configsets/myConfigSet/files/lang/stopwords_en.txt";
 ----
 ====
 ======
diff --git 
a/solr/solr-ref-guide/modules/configuration-guide/pages/coreadmin-api.adoc 
b/solr/solr-ref-guide/modules/configuration-guide/pages/coreadmin-api.adoc
index da6e63565d3..a7d2e78a612 100644
--- a/solr/solr-ref-guide/modules/configuration-guide/pages/coreadmin-api.adoc
+++ b/solr/solr-ref-guide/modules/configuration-guide/pages/coreadmin-api.adoc
@@ -61,21 +61,21 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cores/
+curl http://localhost:8983/api/cores/
 ----
 
 To get the status for a single core:
 
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cores/techproducts
+curl http://localhost:8983/api/cores/techproducts
 ----
 
 To skip returning information about the index:
 
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cores?indexInfo=false
+curl http://localhost:8983/api/cores?indexInfo=false
 ----
 
 ====
@@ -352,7 +352,7 @@ V1 API::
 ====
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/solr/admin/cores?action=RENAME&core={currentCoreName}&other=newCoreName";
+curl 
"http://localhost:8983/solr/admin/cores?action=RENAME&core={currentCoreName}&other=newCoreName";
 ----
 ====
 V2 API::
@@ -570,7 +570,7 @@ V1 API::
 ====
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/solr/admin/cores?action=MERGEINDEXES&core={targetCoreName}&indexDir=path/to/core1/data/index&indexDir=path/to/core2/data/index";
+curl 
"http://localhost:8983/solr/admin/cores?action=MERGEINDEXES&core={targetCoreName}&indexDir=path/to/core1/data/index&indexDir=path/to/core2/data/index";
 ----
 ====
 
@@ -601,7 +601,7 @@ V1 API::
 ====
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/solr/admin/cores?action=mergeindexes&core={targetCoreName}&srcCore=core1&srcCore=core2";
+curl 
"http://localhost:8983/solr/admin/cores?action=mergeindexes&core={targetCoreName}&srcCore=core1&srcCore=core2";
 ----
 ====
 
@@ -920,7 +920,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/node/commands/id
+curl http://localhost:8983/api/node/commands/id
 ----
 ====
 ======
diff --git 
a/solr/solr-ref-guide/modules/deployment-guide/pages/alias-management.adoc 
b/solr/solr-ref-guide/modules/deployment-guide/pages/alias-management.adoc
index e304ff2e0c9..07c4449970f 100644
--- a/solr/solr-ref-guide/modules/deployment-guide/pages/alias-management.adoc
+++ b/solr/solr-ref-guide/modules/deployment-guide/pages/alias-management.adoc
@@ -553,7 +553,7 @@ V1 API::
 ====
 [source,bash]
 ----
-curl -X GET 'http://localhost:8983/solr/admin/collections?action=LISTALIASES'
+curl 'http://localhost:8983/solr/admin/collections?action=LISTALIASES'
 ----
 ====
 
@@ -562,7 +562,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/aliases
+curl http://localhost:8983/api/aliases
 ----
 ====
 ======
@@ -576,7 +576,7 @@ V2 API only::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/aliases/testalias2
+curl http://localhost:8983/api/aliases/testalias2
 ----
 ====
 ======
@@ -593,7 +593,7 @@ The output will contain a list of aliases with the 
corresponding collection name
 
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/aliases
+curl http://localhost:8983/api/aliases
 ----
 
 *Output*
@@ -623,7 +623,7 @@ curl -X GET http://localhost:8983/api/aliases
 
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/aliases/testalias2
+curl http://localhost:8983/api/aliases/testalias2
 ----
 
 *Output*
@@ -759,7 +759,7 @@ V2 API Get all properties on an alias::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/aliases/techproducts_alias/properties
+curl http://localhost:8983/api/aliases/techproducts_alias/properties
 ----
 
 *Output*
@@ -783,7 +783,7 @@ V2 API Get single property value on an alias::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/aliases/techproducts_alias/properties/foo
+curl http://localhost:8983/api/aliases/techproducts_alias/properties/foo
 ----
 
 *Output*
diff --git 
a/solr/solr-ref-guide/modules/deployment-guide/pages/cluster-node-management.adoc
 
b/solr/solr-ref-guide/modules/deployment-guide/pages/cluster-node-management.adoc
index 43ffe3afaff..22ee652954a 100644
--- 
a/solr/solr-ref-guide/modules/deployment-guide/pages/cluster-node-management.adoc
+++ 
b/solr/solr-ref-guide/modules/deployment-guide/pages/cluster-node-management.adoc
@@ -61,7 +61,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cluster
+curl http://localhost:8983/api/cluster
 
 ----
 ====
@@ -240,7 +240,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cluster/nodes
+curl http://localhost:8983/api/cluster/nodes
 ----
 ====
 ======
@@ -444,7 +444,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cluster/properties
+curl http://localhost:8983/api/cluster/properties
 ----
 ====
 ======
@@ -453,7 +453,7 @@ curl -X GET http://localhost:8983/api/cluster/properties
 
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cluster/properties
+curl http://localhost:8983/api/cluster/properties
 ----
 
 *Output*
@@ -488,7 +488,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cluster/properties/urlScheme
+curl http://localhost:8983/api/cluster/properties/urlScheme
 ----
 ====
 ======
@@ -497,7 +497,7 @@ curl -X GET 
http://localhost:8983/api/cluster/properties/urlScheme
 
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cluster/properties/urlScheme
+curl http://localhost:8983/api/cluster/properties/urlScheme
 ----
 
 *Output*
@@ -1144,7 +1144,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/cluster/overseer
+curl http://localhost:8983/api/cluster/overseer
 ----
 ====
 ======
diff --git 
a/solr/solr-ref-guide/modules/deployment-guide/pages/collection-management.adoc 
b/solr/solr-ref-guide/modules/deployment-guide/pages/collection-management.adoc
index 274c9ab1a6f..8023f72bcb1 100644
--- 
a/solr/solr-ref-guide/modules/deployment-guide/pages/collection-management.adoc
+++ 
b/solr/solr-ref-guide/modules/deployment-guide/pages/collection-management.adoc
@@ -492,7 +492,7 @@ With the v2 API, the `list` command is provided as part of 
the JSON data that co
 
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/collections
+curl http://localhost:8983/api/collections
 ----
 ====
 ======
@@ -1112,7 +1112,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/api/collections/techproducts_v2?coreInfo=true&segments=true&fieldInfo=true&sizeInfo=true";
+curl 
"http://localhost:8983/api/collections/techproducts_v2?coreInfo=true&segments=true&fieldInfo=true&sizeInfo=true";
 ----
 ====
 ======
@@ -1862,7 +1862,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/api/backups/backupName/versions?location=/path/to/my/shared/drive";
+curl 
"http://localhost:8983/api/backups/backupName/versions?location=/path/to/my/shared/drive";
 ----
 ====
 ======
@@ -1912,7 +1912,7 @@ V1 API::
 ====
 [source,bash]
 ----
-curl -X GET 
http://localhost:8983/solr/admin/collections?action=RESTORE&name=techproducts_backup&location=file:///path/to/my/shared/drive&collection=techproducts_v3&nrtReplicas=2&createNodeSet=node1,node2&property.foo=bar
+curl 
http://localhost:8983/solr/admin/collections?action=RESTORE&name=techproducts_backup&location=file:///path/to/my/shared/drive&collection=techproducts_v3&nrtReplicas=2&createNodeSet=node1,node2&property.foo=bar
 
 ----
 ====
@@ -2474,7 +2474,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET http://localhost:8983/api/collections/techproducts/snapshots
+curl http://localhost:8983/api/collections/techproducts/snapshots
 ----
 ====
 ======
diff --git 
a/solr/solr-ref-guide/modules/deployment-guide/pages/configuring-logging.adoc 
b/solr/solr-ref-guide/modules/deployment-guide/pages/configuring-logging.adoc
index c0f31a27cfe..5adfc0bc9f9 100644
--- 
a/solr/solr-ref-guide/modules/deployment-guide/pages/configuring-logging.adoc
+++ 
b/solr/solr-ref-guide/modules/deployment-guide/pages/configuring-logging.adoc
@@ -84,7 +84,7 @@ V1 API::
 ====
 [source,bash]
 ----
-curl -X GET "http://localhost:8983/solr/admin/info/logging?set=root:WARN";
+curl "http://localhost:8983/solr/admin/info/logging?set=root:WARN";
 ----
 ====
 
diff --git 
a/solr/solr-ref-guide/modules/deployment-guide/pages/task-management.adoc 
b/solr/solr-ref-guide/modules/deployment-guide/pages/task-management.adoc
index 8693bb2dbe0..67959a3cbf6 100644
--- a/solr/solr-ref-guide/modules/deployment-guide/pages/task-management.adoc
+++ b/solr/solr-ref-guide/modules/deployment-guide/pages/task-management.adoc
@@ -49,7 +49,7 @@ V1 API::
 ====
 [source,bash]
 ----
-curl -X GET "http://localhost:8983/solr/{collectionName}/tasks/list";
+curl "http://localhost:8983/solr/{collectionName}/tasks/list";
 ----
 ====
 
@@ -58,7 +58,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET "http://localhost:8983/v2/collections/{collectionName}/tasks";
+curl "http://localhost:8983/v2/collections/{collectionName}/tasks";
 ----
 ====
 ======
@@ -117,7 +117,7 @@ V1 API::
 ====
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/solr/{collectionName}/tasks/cancel?queryUUID=5";
+curl "http://localhost:8983/solr/{collectionName}/tasks/cancel?queryUUID=5";
 ----
 ====
 V2 API::
@@ -214,7 +214,7 @@ V1 API::
 ====
 [source,bash]
 ----
-curl -X GET "http://localhost:8983/solr/{collectionName}/tasks/list?taskUUID=5";
+curl "http://localhost:8983/solr/{collectionName}/tasks/list?taskUUID=5";
 ----
 ====
 
@@ -223,7 +223,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET "http://localhost:8983/v2/collections/{collectionName}/tasks/5";
+curl "http://localhost:8983/v2/collections/{collectionName}/tasks/5";
 ----
 ====
 ======
diff --git 
a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-opennlp.adoc 
b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-opennlp.adoc
index f90b29af850..bb39d6fb5d2 100644
--- a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-opennlp.adoc
+++ b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-opennlp.adoc
@@ -200,7 +200,7 @@ Query the documents to see the sentiment classifications:
 
 [,console]
 ----
-curl -X GET "http://localhost:8983/solr/sentiment/select?q=id:good";
+curl "http://localhost:8983/solr/sentiment/select?q=id:good";
 ----
 
 You should see the positive review classified as "very good":
@@ -222,7 +222,7 @@ Check the negative review:
 
 [,console]
 ----
-curl -X GET "http://localhost:8983/solr/sentiment/select?q=id:bad";
+curl "http://localhost:8983/solr/sentiment/select?q=id:bad";
 ----
 
 The result should show "very bad" sentiment:
diff --git a/solr/solr-ref-guide/modules/indexing-guide/pages/schema-api.adoc 
b/solr/solr-ref-guide/modules/indexing-guide/pages/schema-api.adoc
index 8a305719fe3..9ce7813cdf6 100644
--- a/solr/solr-ref-guide/modules/indexing-guide/pages/schema-api.adoc
+++ b/solr/solr-ref-guide/modules/indexing-guide/pages/schema-api.adoc
@@ -975,7 +975,7 @@ V2 API::
 [source,bash]
 ----
 
-curl -X GET "http://localhost:8983/api/collections/techproducts/schema/fields";
+curl "http://localhost:8983/api/collections/techproducts/schema/fields";
 ----
 ====
 ======
@@ -1093,7 +1093,7 @@ V2 API::
 [source,bash]
 ----
 
-curl -X GET 
"http://localhost:8983/api/collections/techproducts/schema/dynamicfields";
+curl "http://localhost:8983/api/collections/techproducts/schema/dynamicfields";
 ----
 ====
 ======
@@ -1221,7 +1221,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/api/collections/techproducts/schema/fieldtypes";
+curl "http://localhost:8983/api/collections/techproducts/schema/fieldtypes";
 ----
 ====
 ======
@@ -1344,7 +1344,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/api/collections/techproducts/schema/copyfields";
+curl "http://localhost:8983/api/collections/techproducts/schema/copyfields";
 ----
 ====
 ======
@@ -1434,7 +1434,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET "http://localhost:8983/api/collections/techproducts/schema/name";
+curl "http://localhost:8983/api/collections/techproducts/schema/name";
 ----
 ====
 ======
@@ -1504,7 +1504,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET "http://localhost:8983/api/collections/techproducts/schema/version";
+curl "http://localhost:8983/api/collections/techproducts/schema/version";
 ----
 ====
 ======
@@ -1573,7 +1573,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/api/collections/techproducts/schema/uniquekey";
+curl "http://localhost:8983/api/collections/techproducts/schema/uniquekey";
 ----
 ====
 ======
@@ -1642,7 +1642,7 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X GET 
"http://localhost:8983/api/collections/techproducts/schema/similarity";
+curl "http://localhost:8983/api/collections/techproducts/schema/similarity";
 ----
 ====
 ======
diff --git a/solr/solr-ref-guide/modules/query-guide/pages/json-query-dsl.adoc 
b/solr/solr-ref-guide/modules/query-guide/pages/json-query-dsl.adoc
index 87d5dd1bdcf..b27a9a57f4d 100644
--- a/solr/solr-ref-guide/modules/query-guide/pages/json-query-dsl.adoc
+++ b/solr/solr-ref-guide/modules/query-guide/pages/json-query-dsl.adoc
@@ -48,7 +48,7 @@ curl::
 ====
 [source,bash]
 ----
-curl -X GET "http://localhost:8983/solr/techproducts/query?q=name:iPod";
+curl "http://localhost:8983/solr/techproducts/query?q=name:iPod";
 ----
 ====
 SolrJ::
@@ -161,7 +161,7 @@ curl::
 ====
 [source,bash]
 ----
-curl -X GET "http://localhost:8983/solr/techproducts/query?q={!boost 
b=log(popularity) v=\'{!lucene df=name}iPod\'}"
+curl "http://localhost:8983/solr/techproducts/query?q={!boost 
b=log(popularity) v=\'{!lucene df=name}iPod\'}"
 ----
 ====
 

Reply via email to