Apache Solr open-source search software
SOLR-18460: Drop the redundant -X GET from curl commands in the Ref Guide (#5007)
Serhiy Bzhezytskyye2cdb2d7e8ae
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.adocindex 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.adocindex 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.adocindex 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.adocindex 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.adocindex 9951cb277e6..5301f9dd02c 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----====@@ -226,7 +226,7 @@ V2 API::====[source,bash]-----curl -X GET http://localhost:8983/api/cluster/nodes+curl http://localhost:8983/api/cluster/nodes----==========@@ -430,7 +430,7 @@ V2 API::====[source,bash]-----curl -X GET http://localhost:8983/api/cluster/properties+curl http://localhost:8983/api/cluster/properties----==========@@ -439,7 +439,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*@@ -474,7 +474,7 @@ V2 API::====[source,bash]-----curl -X GET http://localhost:8983/api/cluster/properties/urlScheme+curl http://localhost:8983/api/cluster/properties/urlScheme----==========@@ -483,7 +483,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*@@ -958,7 +958,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.adocindex e64ac5bde34..c985801021b 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"----==========@@ -1838,7 +1838,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"----==========@@ -1888,7 +1888,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----====@@ -2450,7 +2450,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.adocindex 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.adocindex 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.adocindex 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.adocindex 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.adocindex 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\'}"----====