diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/cluster-plugins.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/cluster-plugins.adoc index 939b3a93017b..adbf975fc3b2 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/cluster-plugins.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/cluster-plugins.adoc @@ -222,7 +222,7 @@ This command uses HTTP GET and returns a list of loaded plugins and their config [source,bash] ---- -curl http://localhost:8983/api/cluster/plugin +curl 'http://localhost:8983/api/cluster/plugin' ---- === Add Plugin 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 4d30104e0677..733203382e12 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 @@ -63,7 +63,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/{collectionName}/shards -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/{collectionName}/shards' -H 'Content-Type: application/json' -d ' { "split": { "shard": "shard1", @@ -115,7 +115,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cluster/commands/1000 +curl 'http://localhost:8983/api/cluster/commands/1000' ---- ==== ====== @@ -203,13 +203,13 @@ V2 API:: Delete a single request response: [source,bash] ---- -curl -X DELETE http://localhost:8983/api/cluster/commands/1000 +curl -X DELETE 'http://localhost:8983/api/cluster/commands/1000' ---- Flush out all stored completed and failed async request responses: [source,bash] ---- -curl -X DELETE http://localhost:8983/api/cluster/commands +curl -X DELETE 'http://localhost:8983/api/cluster/commands' ---- ==== ====== diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/config-api.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/config-api.adoc index 38981e7caf69..9bf9e3132a5c 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/config-api.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/config-api.adoc @@ -337,7 +337,7 @@ V1 API:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/config/overlay?omitHeader=true +curl 'http://localhost:8983/solr/techproducts/config/overlay?omitHeader=true' ---- ==== @@ -346,7 +346,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/config/overlay?omitHeader=true +curl 'http://localhost:8983/api/collections/techproducts/config/overlay?omitHeader=true' ---- ==== ====== @@ -503,7 +503,7 @@ Make a call to the new request handler to check if it is registered: [source,bash] ---- -curl http://localhost:8983/solr/techproducts/mypath?omitHeader=true +curl 'http://localhost:8983/solr/techproducts/mypath?omitHeader=true' ---- And you should see the following as output: @@ -673,7 +673,7 @@ V1 API:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/config/overlay?omitHeader=true +curl 'http://localhost:8983/solr/techproducts/config/overlay?omitHeader=true' ---- ==== @@ -682,7 +682,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/config/overlay?omitHeader=true +curl 'http://localhost:8983/api/collections/techproducts/config/overlay?omitHeader=true' ---- ==== ====== diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/config-sets.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/config-sets.adoc index 276e5105e743..921da274337f 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/config-sets.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/config-sets.adoc @@ -99,7 +99,7 @@ V1 API:: ==== [source,bash] ---- -curl http://localhost:8983/admin/cores?action=CREATE&name=mycore&instanceDir=path/to/instance&configSet=configset2 +curl 'http://localhost:8983/admin/cores?action=CREATE&name=mycore&instanceDir=path/to/instance&configSet=configset2' ---- ==== 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 80620400138e..e2cbe255fc9b 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 -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. @@ -180,7 +180,7 @@ With the v1 API, the `upload` command must be capitalized as `UPLOAD`: ---- (cd solr/server/solr/configsets/sample_techproducts_configs/conf && zip -r - *) > myconfigset.zip -curl "http://localhost:8983/solr/admin/configs?action=UPLOAD&name=myConfigSet" --header "Content-Type:application/octet-stream" --data-binary @myconfigset.zip +curl 'http://localhost:8983/solr/admin/configs?action=UPLOAD&name=myConfigSet' --header "Content-Type:application/octet-stream" --data-binary @myconfigset.zip ---- The same can be achieved using a Unix pipe with a single request as follows: @@ -248,7 +248,7 @@ The filename to upload is provided via the `filePath` parameter: [source,bash] ---- -curl "http://localhost:8983/solr/admin/configs?action=UPLOAD&name=myConfigSet&filePath=solrconfig.xml" --header "Content-Type:application/octet-stream" +curl 'http://localhost:8983/solr/admin/configs?action=UPLOAD&name=myConfigSet&filePath=solrconfig.xml' --header "Content-Type:application/octet-stream" --data-binary @solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml ---- ==== @@ -330,14 +330,14 @@ Use a `GET` request to `/api/configsets/\{configSetName}/files/\{filePath}`: [source,bash] ---- -curl "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 "http://localhost:8983/api/configsets/myConfigSet/files/lang/stopwords_en.txt" +curl 'http://localhost:8983/api/configsets/myConfigSet/files/lang/stopwords_en.txt' ---- ==== ====== @@ -477,7 +477,7 @@ The name of the configset to delete is provided as a path parameter: [source,bash] ---- -curl -X DELETE http://localhost:8983/api/configsets/myConfigSet +curl -X DELETE 'http://localhost:8983/api/configsets/myConfigSet' ---- ==== ====== diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/core-info-handler.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/core-info-handler.adoc index a2bef630212b..fb63cfa46967 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/core-info-handler.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/core-info-handler.adoc @@ -48,7 +48,7 @@ Retrieve core information from a node in cloud mode. [source.bash] ---- -curl http://localhost:8983/solr/techproducts/admin/info +curl 'http://localhost:8983/solr/techproducts/admin/info' ---- [source.json] @@ -77,7 +77,7 @@ Retrieve system information from a core, without cloud mode. [source.bash] ---- -curl http://localhost:8983/solr/gettingstarted/admin/system +curl 'http://localhost:8983/solr/gettingstarted/admin/system' ---- [source.json] 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 bffe7d94f0b8..ad99d35f6e32 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 http://localhost:8983/api/cores/ +curl 'http://localhost:8983/api/cores/' ---- To get the status for a single core: [source,bash] ---- -curl http://localhost:8983/api/cores/techproducts +curl 'http://localhost:8983/api/cores/techproducts' ---- To skip returning information about the index: [source,bash] ---- -curl http://localhost:8983/api/cores?indexInfo=false +curl 'http://localhost:8983/api/cores?indexInfo=false' ---- ==== @@ -136,7 +136,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cores -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/cores' -H 'Content-Type: application/json' -d ' { "name": "techproducts_v2", "configSet": "sample_techproducts_configs" @@ -314,7 +314,7 @@ V2 API:: [source,bash] ---- -curl -X POST http://localhost:8983/api/cores/techproducts/reload +curl -X POST 'http://localhost:8983/api/cores/techproducts/reload' ---- ==== ====== @@ -352,7 +352,7 @@ V1 API:: ==== [source,bash] ---- -curl "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:: @@ -360,7 +360,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cores/{currentCoreName}/rename -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/cores/{currentCoreName}/rename' -H 'Content-Type: application/json' -d ' { "to": "newCoreName" } @@ -424,7 +424,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cores/{coreName}/swap -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/cores/{coreName}/swap' -H 'Content-Type: application/json' -d ' { "with": "_other-core-name_" } @@ -492,7 +492,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cores/techproducts/unload -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/cores/techproducts/unload' -H 'Content-Type: application/json' -d ' {} ' ---- @@ -570,7 +570,7 @@ V1 API:: ==== [source,bash] ---- -curl "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' ---- ==== @@ -579,7 +579,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cores/{targetCoreName}/merge-indices -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/cores/{targetCoreName}/merge-indices' -H 'Content-Type: application/json' -d ' { "indexDirs": ["path/to/core1/data/index","path/to/core2/data/index"] } @@ -601,7 +601,7 @@ V1 API:: ==== [source,bash] ---- -curl "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' ---- ==== @@ -610,7 +610,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cores/{targetCoreName}/merge-indices -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/cores/{targetCoreName}/merge-indices' -H 'Content-Type: application/json' -d ' { "srcCores": ["core1","core2"] } @@ -920,7 +920,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/node/commands/id +curl 'http://localhost:8983/api/node/commands/id' ---- ==== ====== diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/implicit-requesthandlers.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/implicit-requesthandlers.adoc index 0aad010ddc92..0a402ff1875a 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/implicit-requesthandlers.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/implicit-requesthandlers.adoc @@ -275,7 +275,7 @@ Expects a single content stream shaped like this, where every document includes + [source,bash] ---- -curl "http://localhost:8983/solr//analysis/document" -H "Content-type:text/xml" --data-binary @mydoc.xml +curl 'http://localhost:8983/solr//analysis/document' -H "Content-type:text/xml" --data-binary @mydoc.xml ---- + The response breaks each field down by analysis stage, alternating the analyzer/filter class name with the tokens it produced (trimmed here for brevity): diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/managed-resources.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/managed-resources.adoc index 4a8e79ca2c5b..3f6230976010 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/managed-resources.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/managed-resources.adoc @@ -79,7 +79,7 @@ So now let’s see this API in action, starting with a simple GET request: [source,bash] ---- -curl "http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english" +curl 'http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english' ---- Assuming you sent this request to Solr, the response body is a JSON document: @@ -115,7 +115,7 @@ Now, let’s add a new word to the English stop word list using an HTTP PUT: [source,bash] ---- -curl -X PUT -H 'Content-type:application/json' --data-binary '["foo"]' "http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english" +curl -X PUT -H 'Content-type:application/json' --data-binary '["foo"]' 'http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english' ---- Here we’re using curl to PUT a JSON list containing a single word “foo” to the managed English stop words set. @@ -126,7 +126,7 @@ You can test to see if a specific word exists by sending a GET request for that [source,bash] ---- -curl "http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english/foo" +curl 'http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english/foo' ---- This request will return a status code of 200 if the child resource (foo) exists or 404 if it does not exist the managed list. @@ -135,7 +135,7 @@ To delete a stop word, you would do: [source,bash] ---- -curl -X DELETE "http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english/foo" +curl -X DELETE 'http://localhost:8983/solr/techproducts/schema/analysis/stopwords/english/foo' ---- NOTE: PUT/POST is used to add terms to an existing list instead of replacing the list entirely. @@ -167,7 +167,7 @@ To get the map of managed synonyms, send a GET request to: [source,bash] ---- -curl "http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english" +curl 'http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english' ---- This request will return a response that looks like: @@ -200,7 +200,7 @@ To add a new synonym mapping, you can PUT/POST a single mapping such as: [source,bash] ---- -curl -X PUT -H 'Content-type:application/json' --data-binary '{"mad":["angry","upset"]}' "http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english" +curl -X PUT -H 'Content-type:application/json' --data-binary '{"mad":["angry","upset"]}' 'http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english' ---- The API will return status code 200 if the PUT request was successful. @@ -211,7 +211,7 @@ For example, you could PUT the following list of symmetric synonyms using the JS [source,bash] ---- -curl -X PUT -H 'Content-type:application/json' --data-binary '["funny", "entertaining", "whimiscal", "jocular"]' "http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english" +curl -X PUT -H 'Content-type:application/json' --data-binary '["funny", "entertaining", "whimiscal", "jocular"]' 'http://localhost:8983/solr/techproducts/schema/analysis/synonyms/english' ---- Note that the expansion is performed when processing the PUT request so the underlying persistent state is still a managed map. @@ -249,7 +249,7 @@ Assuming you have the `managed_en` field type shown above defined in your schema [source,bash] ---- -curl "http://localhost:8983/solr/techproducts/schema/managed" +curl 'http://localhost:8983/solr/techproducts/schema/managed' ---- The response body is a JSON document containing metadata about managed resources under the /schema root: @@ -289,7 +289,7 @@ To create this endpoint, send the following PUT/POST request to the endpoint we ---- curl -X PUT -H 'Content-type:application/json' --data-binary \ '{"class":"org.apache.solr.rest.schema.analysis.ManagedWordSetResource"}' \ -"http://localhost:8983/solr/techproducts/schema/analysis/stopwords/german" +'http://localhost:8983/solr/techproducts/schema/analysis/stopwords/german' ---- Solr will respond with status code 200 if the request is successful. @@ -299,7 +299,7 @@ From here you can start adding German stop words as we saw above: [source,bash] ---- curl -X PUT -H 'Content-type:application/json' --data-binary '["die"]' \ -"http://localhost:8983/solr/techproducts/schema/analysis/stopwords/german" +'http://localhost:8983/solr/techproducts/schema/analysis/stopwords/german' ---- For most users, creating resources in this way should never be necessary, since managed resources are created automatically when configured. @@ -310,5 +310,5 @@ For instance, the managed resource for German that we created above can be delet [source,bash] ---- -curl -X DELETE "http://localhost:8983/solr/techproducts/schema/analysis/stopwords/german" +curl -X DELETE 'http://localhost:8983/solr/techproducts/schema/analysis/stopwords/german' ---- diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/package-manager-internals.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/package-manager-internals.adoc index 323aa9a3bfe3..b11c8a45ad3e 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/package-manager-internals.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/package-manager-internals.adoc @@ -100,7 +100,7 @@ Use the following steps to upload a jar signed with your public key: + [source, bash,subs="attributes"] ---- -curl -o runtimelibs.jar -LO https://github.com/apache/solr/blob/releases/solr/{solr-full-version}/solr/core/src/test-files/runtimecode/runtimelibs.jar.bin?raw=true +curl -o runtimelibs.jar -LO 'https://github.com/apache/solr/blob/releases/solr/{solr-full-version}/solr/core/src/test-files/runtimecode/runtimelibs.jar.bin?raw=true' ---- . Sign the jar with your private key: @@ -114,14 +114,14 @@ openssl dgst -sha1 -sign my_key.pem runtimelibs.jar | openssl enc -base64 | sed + [source, bash] ---- -curl --data-binary @runtimelibs.jar -X PUT http://localhost:8983/api/cluster/filestore/files/mypkg/1.0/myplugins.jar?sig= +curl --data-binary @runtimelibs.jar -X PUT 'http://localhost:8983/api/cluster/filestore/files/mypkg/1.0/myplugins.jar?sig=' ---- . Verify your jar upload: + [source, bash] ---- -curl http://localhost:8983/api/cluster/filestore/metadata/mypkg/1.0?omitHeader=true +curl 'http://localhost:8983/api/cluster/filestore/metadata/mypkg/1.0?omitHeader=true' ---- + [source, json] @@ -244,7 +244,7 @@ The plugins loaded from packages cannot depend on core level classes. + [source,bash] ---- -curl http://localhost:8983/api/cluster/package -H 'Content-type:application/json' -d ' +curl 'http://localhost:8983/api/cluster/package' -H 'Content-type:application/json' -d ' {"add": { "package" : "mypkg", "version":"1.0", @@ -255,7 +255,7 @@ curl http://localhost:8983/api/cluster/package -H 'Content-type:application/jso + [source,bash] ---- -curl http://localhost:8983/api/cluster/package?omitHeader=true +curl 'http://localhost:8983/api/cluster/package?omitHeader=true' ---- + [source,json] @@ -274,7 +274,7 @@ The same result can be achieved by editing your `solrconfig.xml` as well: + [source,bash] ---- -curl http://localhost:8983/solr/gettingstarted/config -H 'Content-type:application/json' -d '{ +curl 'http://localhost:8983/solr/gettingstarted/config' -H 'Content-type:application/json' -d '{ "create-requesthandler": { "name": "/test", "class": "mypkg:org.apache.solr.core.RuntimeLibReqHandler" }}' ---- @@ -283,7 +283,7 @@ curl http://localhost:8983/solr/gettingstarted/config -H 'Content-type:applicati + [source,bash] ---- -curl http://localhost:8983/solr/gettingstarted/config/requestHandler?componentName=/test&meta=true&omitHeader=true +curl 'http://localhost:8983/solr/gettingstarted/config/requestHandler?componentName=/test&meta=true&omitHeader=true' ---- + [source,json] @@ -302,7 +302,7 @@ curl http://localhost:8983/solr/gettingstarted/config/requestHandler?componentNa + [source,bash] ---- -curl http://localhost:8983/solr/gettingstarted/test?omitHeader=true +curl 'http://localhost:8983/solr/gettingstarted/test?omitHeader=true' ---- + [source,json] @@ -322,18 +322,18 @@ Get a new version of the jar, sign and upload it: + [source, bash,subs="attributes"] ---- -curl -o runtimelibs3.jar -LO https://github.com/apache/solr/blob/releases/solr/{solr-full-version}/solr/core/src/test-files/runtimecode/runtimelibs_v3.jar.bin?raw=true +curl -o runtimelibs3.jar -LO 'https://github.com/apache/solr/blob/releases/solr/{solr-full-version}/solr/core/src/test-files/runtimecode/runtimelibs_v3.jar.bin?raw=true' openssl dgst -sha1 -sign my_key.pem runtimelibs.jar | openssl enc -base64 | sed 's/+/%2B/g' | tr -d \\n | sed -curl --data-binary @runtimelibs3.jar -X PUT http://localhost:8983/api/cluster/filestore/files/mypkg/2.0/myplugins.jar?sig= +curl --data-binary @runtimelibs3.jar -X PUT 'http://localhost:8983/api/cluster/filestore/files/mypkg/2.0/myplugins.jar?sig=' ---- . Verify it: + [source, bash] ---- -curl http://localhost:8983/api/cluster/filestore/metadata/mypkg/2.0?omitHeader=true +curl 'http://localhost:8983/api/cluster/filestore/metadata/mypkg/2.0?omitHeader=true' ---- + [source, json] @@ -350,7 +350,7 @@ curl http://localhost:8983/api/cluster/filestore/metadata/mypkg/2.0?omitHeader=t + [source,bash] ---- -curl http://localhost:8983/api/cluster/package -H 'Content-type:application/json' -d ' +curl 'http://localhost:8983/api/cluster/package' -H 'Content-type:application/json' -d ' {"add": { "package" : "mypkg", "version":"2.0", @@ -361,7 +361,7 @@ curl http://localhost:8983/api/cluster/package -H 'Content-type:application/jso + [source,bash] ---- -curl http://localhost:8983/solr/gettingstarted/config/requestHandler?componentName=/test&meta=true&omitHeader=true +curl 'http://localhost:8983/solr/gettingstarted/config/requestHandler?componentName=/test&meta=true&omitHeader=true' ---- + [source,json] @@ -385,7 +385,7 @@ curl http://localhost:8983/solr/gettingstarted/config/requestHandler?componentNa + [source,bash] ---- -curl http://localhost:8983/solr/gettingstarted/test?omitHeader=true +curl 'http://localhost:8983/solr/gettingstarted/test?omitHeader=true' ---- + [source,json] @@ -414,7 +414,7 @@ at a later point. [source,bash] ---- -curl http://localhost:8983/solr/gettingstarted/config/params -H 'Content-type:application/json' -d '{ +curl 'http://localhost:8983/solr/gettingstarted/config/params' -H 'Content-type:application/json' -d '{ "set":{ "PKG_VERSIONS":{ "mypkg":"2.0" diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/package-manager.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/package-manager.adoc index 75eb491c0654..5e79fb66164b 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/package-manager.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/package-manager.adoc @@ -140,7 +140,7 @@ If the collection is named `collection1`, the package name is `mypackage`, and t [source,bash] ---- -curl "http://localhost:8983/api/collections/{collectionName}/config/params" \ +curl 'http://localhost:8983/api/collections/{collectionName}/config/params' \ -H 'Content-type:application/json' -d "{set: {PKG_VERSIONS: {mypackage: '1.0.0'}}}" ---- diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/request-parameters-api.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/request-parameters-api.adoc index 9ca00782adf4..cc1af781d496 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/request-parameters-api.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/request-parameters-api.adoc @@ -61,7 +61,7 @@ In the following example, we are setting 2 sets of parameters named 'myFacets' a [source,bash] ---- -curl http://localhost:8983/solr/techproducts/config/params -H 'Content-type:application/json' -d '{ +curl 'http://localhost:8983/solr/techproducts/config/params' -H 'Content-type:application/json' -d '{ "set":{ "myFacets":{ "facet":"true", @@ -79,7 +79,7 @@ It is possible to add invariants and appends as follows: [source,bash] ---- -curl http://localhost:8983/solr/techproducts/config/params -H 'Content-type:application/json' -d '{ +curl 'http://localhost:8983/solr/techproducts/config/params' -H 'Content-type:application/json' -d '{ "set":{ "my_handler_params":{ "facet.limit":5, @@ -96,7 +96,7 @@ In the following example, two set of parameters named 'myFacets' and 'myQueries' [source,bash] ---- -curl http://localhost:8983/solr/techproducts/config/params -H 'Content-type:application/json' -d '{ +curl 'http://localhost:8983/solr/techproducts/config/params' -H 'Content-type:application/json' -d '{ "delete":[ "myFacets", "myQueries" @@ -108,7 +108,7 @@ When deleting a single parameter set, the value could be specified as string ins [source,bash] ---- -curl http://localhost:8983/solr/techproducts/config/params -H 'Content-type:application/json' -d '{ +curl 'http://localhost:8983/solr/techproducts/config/params' -H 'Content-type:application/json' -d '{ "delete":"myFacets" }' ---- @@ -154,7 +154,7 @@ As an example, for the `/export` request handler: [source,bash] ---- -curl http://localhost:8983/solr/techproducts/config/requestHandler?componentName=/export&expandParams=true +curl 'http://localhost:8983/solr/techproducts/config/requestHandler?componentName=/export&expandParams=true' ---- == Viewing Request Parameters @@ -163,10 +163,10 @@ To see the paramsets that have been created, you can use the `/config/params` en [source,bash] ---- -curl http://localhost:8983/solr/techproducts/config/params +curl 'http://localhost:8983/solr/techproducts/config/params' #Or use the paramset name -curl http://localhost:8983/solr/techproducts/config/params/myQueries +curl 'http://localhost:8983/solr/techproducts/config/params/myQueries' ---- == The useParams Parameter diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/requesthandlers-searchcomponents.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/requesthandlers-searchcomponents.adoc index 3fb8b2f9e61b..b1a6599d838d 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/requesthandlers-searchcomponents.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/requesthandlers-searchcomponents.adoc @@ -85,7 +85,7 @@ The following is an example of parameters being sent through the POST form to `/ [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query" : "memory", "filter" : "inStock:true" diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/system-info-handler.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/system-info-handler.adoc index 5fe1359e2e7c..6317e3e409ce 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/system-info-handler.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/system-info-handler.adoc @@ -167,7 +167,7 @@ Examples on this page refer to the V2 API. [source.bash] ---- -curl http://localhost:8983/api/node/system +curl 'http://localhost:8983/api/node/system' ---- [source.json] diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/update-request-processors.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/update-request-processors.adoc index 84a65feac0d3..ba3ccc93582b 100644 --- a/solr/solr-ref-guide/modules/configuration-guide/pages/update-request-processors.adoc +++ b/solr/solr-ref-guide/modules/configuration-guide/pages/update-request-processors.adoc @@ -209,7 +209,7 @@ For example, in order to choose the "dedupe" chain described in a previous secti .Using update.chain [source,bash] ---- -curl "http://localhost:8983/solr/gettingstarted/update/json?update.chain=dedupe&commit=true" -H 'Content-type: application/json' -d ' +curl 'http://localhost:8983/solr/gettingstarted/update/json?update.chain=dedupe&commit=true' -H 'Content-type: application/json' -d ' [ { "name" : "The Lightning Thief", @@ -237,7 +237,7 @@ For example: [source,bash] ---- -curl "http://localhost:8983/solr/gettingstarted/update/json?processor=remove_blanks,signature&commit=true" -H 'Content-type: application/json' -d ' +curl 'http://localhost:8983/solr/gettingstarted/update/json?processor=remove_blanks,signature&commit=true' -H 'Content-type: application/json' -d ' [ { "name" : "The Lightning Thief", @@ -256,7 +256,7 @@ curl "http://localhost:8983/solr/gettingstarted/update/json?processor=remove_bla .Executing processors configured in solrconfig.xml as pre- and post-processors [source,bash] ---- -curl "http://localhost:8983/solr/gettingstarted/update/json?processor=remove_blanks&post-processor=signature&commit=true" -H 'Content-type: application/json' -d ' +curl 'http://localhost:8983/solr/gettingstarted/update/json?processor=remove_blanks&post-processor=signature&commit=true' -H 'Content-type: application/json' -d ' [ { "name" : "The Lightning Thief", 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 07c4449970fa..1474a403c52a 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 @@ -343,7 +343,7 @@ V2 API:: [source,bash] ---- -curl http://localhost:8983/api/aliases -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/aliases' -H 'Content-Type: application/json' -d ' { "name":"testalias", "collections":["foo","bar"] @@ -414,7 +414,7 @@ V2 API:: [source,bash] ---- -curl http://localhost:8983/api/aliases -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/aliases' -H 'Content-Type: application/json' -d ' { "name": "somethingTemporalThisWayComes", "routers" : [ @@ -504,7 +504,7 @@ V2 API:: [source,bash] ---- -curl http://localhost:8983/api/aliases -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/aliases' -H 'Content-Type: application/json' -d ' { "name":"dra_test1", "routers": [ @@ -562,7 +562,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/aliases +curl 'http://localhost:8983/api/aliases' ---- ==== ====== @@ -576,7 +576,7 @@ V2 API only:: ==== [source,bash] ---- -curl 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 http://localhost:8983/api/aliases +curl 'http://localhost:8983/api/aliases' ---- *Output* @@ -623,7 +623,7 @@ curl http://localhost:8983/api/aliases [source,bash] ---- -curl http://localhost:8983/api/aliases/testalias2 +curl 'http://localhost:8983/api/aliases/testalias2' ---- *Output* @@ -668,7 +668,7 @@ V2 API:: ==== [source,bash] ---- -curl -X PUT http://localhost:8983/api/aliases/techproducts_alias/properties -H 'Content-Type: application/json' -d ' +curl -X PUT 'http://localhost:8983/api/aliases/techproducts_alias/properties' -H 'Content-Type: application/json' -d ' { "properties": {"foo":"bar"} }' @@ -681,7 +681,7 @@ V2 API Update via property level api:: ==== [source,bash] ---- -curl -X PUT http://localhost:8983/api/aliases/techproducts_alias/properties/foo -H 'Content-Type: application/json' -d ' +curl -X PUT 'http://localhost:8983/api/aliases/techproducts_alias/properties/foo' -H 'Content-Type: application/json' -d ' { "value": "baz" }' @@ -693,7 +693,7 @@ V2 API Delete via property level api:: ==== [source,bash] ---- -curl -X DELETE http://localhost:8983/api/aliases/techproducts_alias/properties/foo -H 'Content-Type: application/json' +curl -X DELETE 'http://localhost:8983/api/aliases/techproducts_alias/properties/foo' -H 'Content-Type: application/json' ---- ==== ====== @@ -759,7 +759,7 @@ V2 API Get all properties on an alias:: ==== [source,bash] ---- -curl 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 http://localhost:8983/api/aliases/techproducts_alias/properties/foo +curl 'http://localhost:8983/api/aliases/techproducts_alias/properties/foo' ---- *Output* @@ -821,7 +821,7 @@ V2 API:: ==== [source,bash] ---- -curl -X DELETE http://localhost:8983/api/aliases/testalias +curl -X DELETE 'http://localhost:8983/api/aliases/testalias' ---- ==== ====== diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/backup-restore.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/backup-restore.adoc index e243e15a7b36..cfdb630ce042 100644 --- a/solr/solr-ref-guide/modules/deployment-guide/pages/backup-restore.adoc +++ b/solr/solr-ref-guide/modules/deployment-guide/pages/backup-restore.adoc @@ -281,7 +281,7 @@ V1 API:: ==== [source,bash] ---- -curl -X POST http://localhost:8983/solr/admin/cores?action=CREATESNAPSHOT&core=techproducts&commitName=commit1 +curl -X POST 'http://localhost:8983/solr/admin/cores?action=CREATESNAPSHOT&core=techproducts&commitName=commit1' ---- ==== @@ -293,7 +293,7 @@ With the v2 API, the core and snapshot names are part of the path instead of que [source,bash] ---- -curl -X POST http://localhost:8983/api/cores/techproducts/snapshots/commit1 +curl -X POST 'http://localhost:8983/api/cores/techproducts/snapshots/commit1' ---- ==== ====== @@ -328,7 +328,7 @@ V1 API:: ==== [source,bash] ---- -curl http://localhost:8983/solr/admin/cores?action=LISTSNAPSHOTS&core=techproducts&commitName=commit1 +curl 'http://localhost:8983/solr/admin/cores?action=LISTSNAPSHOTS&core=techproducts&commitName=commit1' ---- ==== @@ -340,7 +340,7 @@ With the v2 API the core name appears in the path, instead of as a query paramet [source,bash] ---- -curl http://localhost:8983/api/cores/techproducts/snapshots +curl 'http://localhost:8983/api/cores/techproducts/snapshots' ---- ==== ====== @@ -375,7 +375,7 @@ V1 API:: ==== [source,bash] ---- -curl http://localhost:8983/solr/admin/cores?action=DELETESNAPSHOT&core=techproducts&commitName=commit1 +curl 'http://localhost:8983/solr/admin/cores?action=DELETESNAPSHOT&core=techproducts&commitName=commit1' ---- ==== @@ -387,7 +387,7 @@ With the v2 API, the core and snapshot names are part of the path instead of que [source,bash] ---- -curl -X DELETE http://localhost:8983/api/cores/techproducts/snapshots/commit1 +curl -X DELETE 'http://localhost:8983/api/cores/techproducts/snapshots/commit1' ---- ==== ====== diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/basic-authentication-plugin.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/basic-authentication-plugin.adoc index b3cce8cfd39a..221b28ecf64b 100644 --- a/solr/solr-ref-guide/modules/deployment-guide/pages/basic-authentication-plugin.adoc +++ b/solr/solr-ref-guide/modules/deployment-guide/pages/basic-authentication-plugin.adoc @@ -214,7 +214,7 @@ V1 API:: ==== [source,bash] ---- -curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-user": {"tom":"TomIsCool", "harry":"HarrysSecret"}}' +curl --user solr:SolrRocks 'http://localhost:8983/solr/admin/authentication' -H 'Content-type:application/json' -d '{"set-user": {"tom":"TomIsCool", "harry":"HarrysSecret"}}' ---- ==== @@ -223,7 +223,7 @@ V2 API:: ==== [source,bash] ---- -curl --user solr:SolrRocks http://localhost:8983/api/cluster/security/authentication -H 'Content-type:application/json' -d '{"set-user": {"tom":"TomIsCool", "harry":"HarrysSecret"}}' +curl --user solr:SolrRocks 'http://localhost:8983/api/cluster/security/authentication' -H 'Content-type:application/json' -d '{"set-user": {"tom":"TomIsCool", "harry":"HarrysSecret"}}' ---- ==== ====== @@ -241,7 +241,7 @@ V1 API:: ==== [source,bash] ---- -curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"delete-user": ["tom", "harry"]}' +curl --user solr:SolrRocks 'http://localhost:8983/solr/admin/authentication' -H 'Content-type:application/json' -d '{"delete-user": ["tom", "harry"]}' ---- ==== @@ -250,7 +250,7 @@ V2 API:: ==== [source,bash] ---- -curl --user solr:SolrRocks http://localhost:8983/api/cluster/security/authentication -H 'Content-type:application/json' -d '{"delete-user": ["tom", "harry"]}' +curl --user solr:SolrRocks 'http://localhost:8983/api/cluster/security/authentication' -H 'Content-type:application/json' -d '{"delete-user": ["tom", "harry"]}' ---- ==== ====== @@ -267,7 +267,7 @@ V1 API:: ==== [source,bash] ---- -curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-property": {"blockUnknown":false}}' +curl --user solr:SolrRocks 'http://localhost:8983/solr/admin/authentication' -H 'Content-type:application/json' -d '{"set-property": {"blockUnknown":false}}' ---- ==== @@ -276,7 +276,7 @@ V2 API:: ==== [source,bash] ---- -curl --user solr:SolrRocks http://localhost:8983/api/cluster/security/authentication -H 'Content-type:application/json' -d '{"set-property": {"blockUnknown":false}}' +curl --user solr:SolrRocks 'http://localhost:8983/api/cluster/security/authentication' -H 'Content-type:application/json' -d '{"set-property": {"blockUnknown":false}}' ---- ==== ====== @@ -291,7 +291,7 @@ V1 API:: ==== [source,bash] ---- -curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-property": {"realm":"My Solr users"}}' +curl --user solr:SolrRocks 'http://localhost:8983/solr/admin/authentication' -H 'Content-type:application/json' -d '{"set-property": {"realm":"My Solr users"}}' ---- ==== @@ -300,7 +300,7 @@ V2 API:: ==== [source,bash] ---- -curl --user solr:SolrRocks http://localhost:8983/api/cluster/security/authentication -H 'Content-type:application/json' -d '{"set-property": {"realm":"My Solr users"}}' +curl --user solr:SolrRocks 'http://localhost:8983/api/cluster/security/authentication' -H 'Content-type:application/json' -d '{"set-property": {"realm":"My Solr users"}}' ---- ==== ====== 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 bad8ff41bfc4..a1b285a93b3e 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 @@ -206,7 +206,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cluster/nodes +curl 'http://localhost:8983/api/cluster/nodes' ---- ==== ====== @@ -250,7 +250,7 @@ V2 API:: To create or update a cluster property: [source,bash] ---- -curl -X PUT http://localhost:8983/api/cluster/properties/urlScheme -H 'Content-Type: application/json' -d ' +curl -X PUT 'http://localhost:8983/api/cluster/properties/urlScheme' -H 'Content-Type: application/json' -d ' { "value": "https" } @@ -260,7 +260,7 @@ curl -X PUT http://localhost:8983/api/cluster/properties/urlScheme -H 'Content-T To delete an existing cluster property: [source,bash] ---- -curl -X DELETE http://localhost:8983/api/cluster/properties/urlScheme +curl -X DELETE 'http://localhost:8983/api/cluster/properties/urlScheme' ---- ==== ====== @@ -374,7 +374,7 @@ curl -X PUT -H 'Content-type:application/json' --data-binary ' or [source,bash] ---- -curl -X DELETE http://localhost:8983/api/cluster/properties/defaults +curl -X DELETE 'http://localhost:8983/api/cluster/properties/defaults' ---- @@ -410,7 +410,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cluster/properties +curl 'http://localhost:8983/api/cluster/properties' ---- ==== ====== @@ -447,7 +447,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cluster/properties/urlScheme +curl 'http://localhost:8983/api/cluster/properties/urlScheme' ---- ==== ====== @@ -488,7 +488,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cluster/replicas/balance -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/cluster/replicas/balance' -H 'Content-Type: application/json' -d ' { "nodes": ["localhost:8983_solr", "localhost:8984_solr"], "async": "balance-replicas-1" @@ -567,7 +567,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/balance-shard-unique -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts/balance-shard-unique' -H 'Content-Type: application/json' -d ' { "property": "preferredLeader" } @@ -666,7 +666,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cluster/replicas/migrate -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/cluster/replicas/migrate' -H 'Content-Type: application/json' -d ' { "sourceNodes": ["localhost:8983_solr", "localhost:8984_solr"], "targetNodes": ["localhost:8985_solr", "localhost:8986_solr"], @@ -767,7 +767,7 @@ V2 API:: ==== [source,bash] ---- -curl "http://localhost:8983/api/cluster/nodes/localhost:7574_solr/replace" -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/cluster/nodes/localhost:7574_solr/replace' -H 'Content-Type: application/json' -d ' { "targetNodeName": "localhost:8983_solr", "waitForFinalState": "false", @@ -873,7 +873,7 @@ V2 API:: ==== [source,bash] ---- -curl "http://localhost:8983/api/cluster/nodes/localhost:7574_solr/clear/" -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/cluster/nodes/localhost:7574_solr/clear/' -H 'Content-Type: application/json' -d ' { "async": "someAsyncId" } @@ -924,7 +924,7 @@ V2 API:: ==== [source,bash] ---- -curl 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 c5303b26a8c1..dcfebbfa4945 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 @@ -51,7 +51,7 @@ With the v2 API, the `create` command is provided as part of the JSON data that [source,bash] ---- -curl http://localhost:8983/api/collections -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections' -H 'Content-Type: application/json' -d ' { "name": "techproducts_v2", "config": "techproducts", @@ -335,7 +335,7 @@ With the v2 API, the `reload` command is provided as a part of URL path. The req [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts_v2/reload -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts_v2/reload' -H 'Content-Type: application/json' -d ' { "async": "someAsyncId" } @@ -401,7 +401,7 @@ With the v2 API, the `modify` command is provided as part of the JSON data that [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts_v2 -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts_v2' -H 'Content-Type: application/json' -d ' { "modify": { "replicationFactor": 2 @@ -492,7 +492,7 @@ With the v2 API, the `list` command is provided as part of the JSON data that co [source,bash] ---- -curl http://localhost:8983/api/collections +curl 'http://localhost:8983/api/collections' ---- ==== ====== @@ -538,7 +538,7 @@ The collection health state is reported as the worst state of any shard, e.g., f [source,bash] ---- -curl -X GET "http://localhost:8983/api/collections?detailed=true" +curl 'http://localhost:8983/api/collections?detailed=true' ---- ==== Detailed Collections Tree Parameters @@ -741,7 +741,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/rename -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts/rename' -H 'Content-Type: application/json' -d ' { "to": "newName" } @@ -818,14 +818,14 @@ V2 API:: ==== [source,bash] ---- -curl -X DELETE http://localhost:8983/api/collections/techproducts_v2 +curl -X DELETE 'http://localhost:8983/api/collections/techproducts_v2' ---- To run a DELETE asynchronously then append the `async` parameter: [source,bash] ---- -curl -X DELETE http://localhost:8983/api/collections/techproducts_v2?async=aaaa +curl -X DELETE 'http://localhost:8983/api/collections/techproducts_v2?async=aaaa' ---- ==== ====== @@ -905,7 +905,7 @@ To create or update a collection property: [source,bash] ---- -curl -X PUT http://localhost:8983/api/collections/techproducts_v2/properties/propertyName -H 'Content-Type: application/json' -d ' +curl -X PUT 'http://localhost:8983/api/collections/techproducts_v2/properties/propertyName' -H 'Content-Type: application/json' -d ' { "value": "propertyValue" } @@ -916,14 +916,14 @@ To list all properties for a collection: [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/properties +curl 'http://localhost:8983/api/collections/techproducts/properties' ---- To get a specific collection property by name: [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/properties/propertyName +curl 'http://localhost:8983/api/collections/techproducts/properties/propertyName' ---- @@ -931,7 +931,7 @@ To delete an existing collection property: [source,bash] ---- -curl -X DELETE http://localhost:8983/api/collections/techproducts/properties/propertyName +curl -X DELETE 'http://localhost:8983/api/collections/techproducts/properties/propertyName' ---- ==== ====== @@ -1027,7 +1027,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts_v2 -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts_v2' -H 'Content-Type: application/json' -d ' { "migrate-docs": { "target": "postMigrationCollection", @@ -1312,7 +1312,7 @@ V2 API:: ==== [source,bash] ---- -curl "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' ---- ==== ====== @@ -1801,7 +1801,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/backups/techproducts_backup/versions -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts/backups/techproducts_backup/versions' -H 'Content-Type: application/json' -d ' { "location": "file:///path/to/my/shared/drive" } @@ -2038,7 +2038,7 @@ V2 API:: ==== [source,bash] ---- -curl "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' ---- ==== ====== @@ -2088,7 +2088,7 @@ V1 API:: ==== [source,bash] ---- -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 +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' ---- ==== @@ -2098,7 +2098,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/backups/techproducts_backup/restore -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/backups/techproducts_backup/restore' -H 'Content-Type: application/json' -d ' { "collection": "techproducts_v3", "location": "file:///path/to/my/shared/drive", @@ -2244,7 +2244,7 @@ V2 API:: ==== [source,bash] ---- -curl -X DELETE "http://localhost:8983/api/backups/myBackupName/versions/0?location=/path/to/my/shared/drive" +curl -X DELETE 'http://localhost:8983/api/backups/myBackupName/versions/0?location=/path/to/my/shared/drive' ---- ==== ====== @@ -2284,7 +2284,7 @@ V2 API:: [source,bash] ---- -curl -X DELETE "http://localhost:8983/api/backups/myBackupName/versions?retainLatest=2&location=/path/to/my/shared/drive" +curl -X DELETE 'http://localhost:8983/api/backups/myBackupName/versions?retainLatest=2&location=/path/to/my/shared/drive' ---- ==== ====== @@ -2308,7 +2308,7 @@ V2 API:: [source,bash] ---- -curl -X PUT -H "Content-type: application/json" "http://localhost:8983/api/backups/myBackupName/purgeUnused" ' +curl -X PUT -H "Content-type: application/json" 'http://localhost:8983/api/backups/myBackupName/purgeUnused' ' { "location": "/path/to/my/shared/drive" } @@ -2421,7 +2421,7 @@ With the v2 API, the `rebalance-leaders` command is provided as part of the JSON [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts' -H 'Content-Type: application/json' -d ' { "rebalance-leaders": { "maxAtOnce": 3 @@ -2559,7 +2559,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/snapshots/snapshot0 -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts/snapshots/snapshot0' -H 'Content-Type: application/json' -d ' { "followAliases": true, "async": "someAsyncId" @@ -2650,7 +2650,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/snapshots +curl 'http://localhost:8983/api/collections/techproducts/snapshots' ---- ==== ====== @@ -2781,7 +2781,7 @@ V2 API:: ==== [source,bash] ---- -curl -X DELETE http://localhost:8983/api/collections/techproducts/snapshots/snapshot0?followAliases=true&async=someAsyncId +curl -X DELETE 'http://localhost:8983/api/collections/techproducts/snapshots/snapshot0?followAliases=true&async=someAsyncId' ---- ==== ====== 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 5adfc0bc9f9e..f015fee83e54 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 "http://localhost:8983/solr/admin/info/logging?set=root:WARN" +curl 'http://localhost:8983/solr/admin/info/logging?set=root:WARN' ---- ==== @@ -93,7 +93,7 @@ V2 API:: ==== [source,bash] ---- -curl -X PUT http://localhost:8983/api/node/logging/levels -H 'Content-Type: application/json' -d ' +curl -X PUT 'http://localhost:8983/api/node/logging/levels' -H 'Content-Type: application/json' -d ' [ {"logger": "root", "level": "WARN"} ] diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/enabling-ssl.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/enabling-ssl.adoc index 97a52184ef9e..416eebe5b072 100644 --- a/solr/solr-ref-guide/modules/deployment-guide/pages/enabling-ssl.adoc +++ b/solr/solr-ref-guide/modules/deployment-guide/pages/enabling-ssl.adoc @@ -214,7 +214,7 @@ the keystore/truststore won't be updated in the client. ==== curl on OS X Mavericks (10.9) has degraded SSL support. For more information and workarounds to allow one-way SSL, see https://curl.se/mail/archive-2013-10/0036.html. -curl on OS X Yosemite (10.10) is improved - 2-way SSL is possible - see https://curl.se/mail/archive-2014-10/0053.html. +curl on OS X Yosemite (10.10) is improved - 2-way SSL is possible - see 'https://curl.se/mail/archive-2014-10/0053.html.' The curl commands in the following sections will not work with the system `curl` on OS X Yosemite (10.10). Instead, the certificate supplied with the `-E` parameter must be in PKCS12 format, and the file supplied with the `--cacert` parameter must contain only the CA certificate, and no key (see <> for instructions on creating this file): @@ -259,7 +259,7 @@ To get the resulting cluster status (again, if you have not enabled client authe [source,bash] ---- -curl -E solr-ssl.pem:secret --cacert solr-ssl.pem "https://localhost:8984/solr/admin/collections?action=CLUSTERSTATUS&indent=on" +curl -E solr-ssl.pem:secret --cacert solr-ssl.pem 'https://localhost:8984/solr/admin/collections?action=CLUSTERSTATUS&indent=on' ---- You should get a response that looks like this: @@ -313,7 +313,7 @@ If you have not enabled client authentication (system property `-Djetty.ssl.clie [source,bash] ---- -curl -E solr-ssl.pem:secret --cacert solr-ssl.pem "https://localhost:8984/solr/mycollection/select?q=*:*" +curl -E solr-ssl.pem:secret --cacert solr-ssl.pem 'https://localhost:8984/solr/mycollection/select?q=*:*' ---- === Index a Document using CloudSolrClient diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/healthcheck.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/healthcheck.adoc index c4df352688c5..24ad2cdc72ff 100644 --- a/solr/solr-ref-guide/modules/deployment-guide/pages/healthcheck.adoc +++ b/solr/solr-ref-guide/modules/deployment-guide/pages/healthcheck.adoc @@ -68,7 +68,7 @@ In SolrCloud mode, the endpoint returns HTTP `200 OK` only if all of the followi [source,bash] ---- -curl "http://localhost:8983/api/node/health" +curl 'http://localhost:8983/api/node/health' ---- Healthy node: @@ -99,7 +99,7 @@ This is useful as a readiness probe during a rolling restart, so an orchestrator [source,bash] ---- -curl "http://localhost:8983/api/node/health?requireHealthyCores=true" +curl 'http://localhost:8983/api/node/health?requireHealthyCores=true' ---- === User-Managed (Leader-Follower) Mode @@ -109,7 +109,7 @@ Set `maxGenerationLag=` to fail the healthcheck once a follower falls more th [source,bash] ---- -curl "http://localhost:8983/api/node/health?maxGenerationLag=100" +curl 'http://localhost:8983/api/node/health?maxGenerationLag=100' ---- Healthy node (all followers within the allowed lag): diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/jwt-authentication-plugin.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/jwt-authentication-plugin.adoc index f07f912a0e50..4e96a6d313d7 100644 --- a/solr/solr-ref-guide/modules/deployment-guide/pages/jwt-authentication-plugin.adoc +++ b/solr/solr-ref-guide/modules/deployment-guide/pages/jwt-authentication-plugin.adoc @@ -225,7 +225,7 @@ V1 API:: ==== [source,bash] ---- -curl http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -H 'Authorization: Bearer xxx.yyy.zzz' -d '{ +curl 'http://localhost:8983/solr/admin/authentication' -H 'Content-type:application/json' -H 'Authorization: Bearer xxx.yyy.zzz' -d '{ "set-property": { "blockUnknown":true, "wellKnownUrl": "https://example.com/.well-known/openid-configuration", @@ -241,7 +241,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/cluster/security/authentication -H 'Content-type:application/json' -H 'Authorization: Bearer xxx.yyy.zzz' -d '{ +curl 'http://localhost:8983/api/cluster/security/authentication' -H 'Content-type:application/json' -H 'Authorization: Bearer xxx.yyy.zzz' -d '{ "set-property": { "blockUnknown":true, "wellKnownUrl": "https://example.com/.well-known/openid-configuration", @@ -276,7 +276,7 @@ V1 API:: ==== [source,bash] ---- -curl -H "Authorization: Bearer xxxxxx.xxxxxx.xxxxxx" http://localhost:8983/solr/admin/info/system +curl -H "Authorization: Bearer xxxxxx.xxxxxx.xxxxxx" 'http://localhost:8983/solr/admin/info/system' ---- ==== @@ -285,7 +285,7 @@ V2 API:: ==== [source,bash] ---- -curl -H "Authorization: Bearer xxxxxx.xxxxxx.xxxxxx" http://localhost:8983/api/node/system +curl -H "Authorization: Bearer xxxxxx.xxxxxx.xxxxxx" 'http://localhost:8983/api/node/system' ---- ==== ====== diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/node-roles.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/node-roles.adoc index 1151f3c5c7c6..2e53600e528b 100644 --- a/solr/solr-ref-guide/modules/deployment-guide/pages/node-roles.adoc +++ b/solr/solr-ref-guide/modules/deployment-guide/pages/node-roles.adoc @@ -108,7 +108,7 @@ Fetches the list of supported roles and their supported modes for this cluster. [source,bash] ---- -curl http://localhost:8983/api/cluster/node-roles/supported +curl 'http://localhost:8983/api/cluster/node-roles/supported' ---- *Output* @@ -135,7 +135,7 @@ Fetches the current node roles assignment for all the nodes in the cluster. [source,bash] ---- -curl http://localhost:8983/api/cluster/node-roles +curl 'http://localhost:8983/api/cluster/node-roles' ---- *Output* @@ -162,7 +162,7 @@ Fetches the current node roles assignment for a specified role. [source,bash] ---- -curl http://localhost:8983/api/cluster/node-roles/role/data +curl 'http://localhost:8983/api/cluster/node-roles/role/data' ---- *Output* @@ -180,7 +180,7 @@ curl http://localhost:8983/api/cluster/node-roles/role/data [source,bash] ---- -curl http://localhost:8983/api/cluster/node-roles/role/data/off +curl 'http://localhost:8983/api/cluster/node-roles/role/data/off' ---- *Output* @@ -203,7 +203,7 @@ Fetches the current node roles assignment for the specified node. [source,bash] ---- -curl http://localhost:8983/api/cluster/node-roles/node/solr1:8983_solr +curl 'http://localhost:8983/api/cluster/node-roles/node/solr1:8983_solr' ---- *Output* diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/replica-management.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/replica-management.adoc index a602d6b3a5b9..6131d4908b51 100644 --- a/solr/solr-ref-guide/modules/deployment-guide/pages/replica-management.adoc +++ b/solr/solr-ref-guide/modules/deployment-guide/pages/replica-management.adoc @@ -72,7 +72,7 @@ V2 API:: [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/shards/shard1/replicas -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts/shards/shard1/replicas' -H 'Content-Type: application/json' -d ' { "node":"localhost:8983_solr" } @@ -336,7 +336,7 @@ V2 API:: [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts' -H 'Content-Type: application/json' -d ' { "move-replica":{ "replica":"core_node6", @@ -478,21 +478,21 @@ To delete a replica by name: [source,bash] ---- -curl -X DELETE http://localhost:8983/api/collections/techproducts/shards/shard1/replicas/core_node2 +curl -X DELETE 'http://localhost:8983/api/collections/techproducts/shards/shard1/replicas/core_node2' ---- To delete a specified number of (unnamed) replicas from a single shard: [source,bash] ---- -curl -X DELETE "http://localhost:8983/api/collections/techproducts/shards/shard1/replicas?count=3" +curl -X DELETE 'http://localhost:8983/api/collections/techproducts/shards/shard1/replicas?count=3' ---- To delete a specified number of (unnamed) replicas from all shards: [source,bash] ---- -curl -X PUT -H "Content-type: application/json" "http://localhost:8983/api/collections/techproducts/scale" -d ' +curl -X PUT -H "Content-type: application/json" 'http://localhost:8983/api/collections/techproducts/scale' -d ' { "count": 3 } @@ -636,7 +636,7 @@ V2 API:: [source,bash] ---- -curl -X PUT http://localhost:8983/api/collections/techproducts/shards/shard1/replicas/core_node2/properties/preferredLeader -H 'Content-Type: application/json' -d ' +curl -X PUT 'http://localhost:8983/api/collections/techproducts/shards/shard1/replicas/core_node2/properties/preferredLeader' -H 'Content-Type: application/json' -d ' { "value": "true" } @@ -770,7 +770,7 @@ V2 API:: [source,bash] ---- -curl -X DELETE http://localhost:8983/api/collections/techproducts/shards/shard1/replicas/core_node2/properties/preferredLeader +curl -X DELETE 'http://localhost:8983/api/collections/techproducts/shards/shard1/replicas/core_node2/properties/preferredLeader' ---- ==== ====== diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/shard-management.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/shard-management.adoc index cd46cc464f47..a9632aefacd7 100644 --- a/solr/solr-ref-guide/modules/deployment-guide/pages/shard-management.adoc +++ b/solr/solr-ref-guide/modules/deployment-guide/pages/shard-management.adoc @@ -65,7 +65,7 @@ V2 API:: [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/shards -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts/shards' -H 'Content-Type: application/json' -d ' { "split":{ "shard":"shard1" @@ -319,7 +319,7 @@ V2 API:: [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/shards -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts/shards' -H 'Content-Type: application/json' -d ' { "shard":"newShardName" } @@ -466,7 +466,7 @@ V2 API:: ==== [source,bash] ---- -curl -X DELETE http://localhost:8983/api/collections/techproducts/shards/shard1 +curl -X DELETE 'http://localhost:8983/api/collections/techproducts/shards/shard1' ---- ==== ====== @@ -584,7 +584,7 @@ V2 API:: [source,bash] ---- -curl -X POST http://localhost:8983/api/collections/techproducts/shards/shard1/force-leader +curl -X POST 'http://localhost:8983/api/collections/techproducts/shards/shard1/force-leader' ---- *Output* @@ -675,7 +675,7 @@ V2 API:: [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/shards/shard1/install -H 'Content-Type: application/json' -d ' +curl 'http://localhost:8983/api/collections/techproducts/shards/shard1/install' -H 'Content-Type: application/json' -d ' { "repository": "localfs", "location": "/mounts/myNFSDrive/tech/shard1/data/index" diff --git a/solr/solr-ref-guide/modules/deployment-guide/pages/solr-in-docker.adoc b/solr/solr-ref-guide/modules/deployment-guide/pages/solr-in-docker.adoc index d819053f401a..f524ba646ce7 100644 --- a/solr/solr-ref-guide/modules/deployment-guide/pages/solr-in-docker.adoc +++ b/solr/solr-ref-guide/modules/deployment-guide/pages/solr-in-docker.adoc @@ -178,7 +178,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections -H 'Content-Type: application/json' -d '{"name": "gettingstarted4", "numShards": 1, "config": "_default"}' +curl 'http://localhost:8983/api/collections' -H 'Content-Type: application/json' -d '{"name": "gettingstarted4", "numShards": 1, "config": "_default"}' ---- ==== ====== 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 67959a3cbf6d..185326b8ed95 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 "http://localhost:8983/solr/{collectionName}/tasks/list" +curl 'http://localhost:8983/solr/{collectionName}/tasks/list' ---- ==== @@ -58,7 +58,7 @@ V2 API:: ==== [source,bash] ---- -curl "http://localhost:8983/v2/collections/{collectionName}/tasks" +curl 'http://localhost:8983/v2/collections/{collectionName}/tasks' ---- ==== ====== @@ -117,7 +117,7 @@ V1 API:: ==== [source,bash] ---- -curl "http://localhost:8983/solr/{collectionName}/tasks/cancel?queryUUID=5" +curl 'http://localhost:8983/solr/{collectionName}/tasks/cancel?queryUUID=5' ---- ==== V2 API:: @@ -125,7 +125,7 @@ V2 API:: ==== [source,bash] ---- -curl -X DELETE "http://localhost:8983/v2/collections/{collectionName}/tasks/5" +curl -X DELETE 'http://localhost:8983/v2/collections/{collectionName}/tasks/5' ---- ==== ====== @@ -214,7 +214,7 @@ V1 API:: ==== [source,bash] ---- -curl "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 "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-five-minutes.adoc b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-five-minutes.adoc index be4c3370177c..46fad681334d 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 @@ -37,7 +37,7 @@ Like a database system holds data in tables, Solr holds data in collections. A c [,bash] ---- curl --request POST \ ---url http://localhost:8983/api/collections \ +--url 'http://localhost:8983/api/collections' \ --header 'Content-Type: application/json' \ --data '{ "name": "techproducts", @@ -53,7 +53,7 @@ Let us define some of the fields that our documents will contain. [,bash] ---- curl --request POST \ - --url http://localhost:8983/api/collections/techproducts/schema \ + --url 'http://localhost:8983/api/collections/techproducts/schema' \ --header 'Content-Type: application/json' \ --data '{ "add-field": [ 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 b31430a6c602..1e58a41d0581 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 @@ -92,7 +92,7 @@ We need to add fields to our schema to store both the input text and the sentime [,bash] ---- -curl "http://localhost:8983/solr/sentiment/schema" -H 'Content-type:application/json' --data-binary '{ +curl 'http://localhost:8983/solr/sentiment/schema' -H 'Content-type:application/json' --data-binary '{ "add-field":{ "name":"name", "type":"string", @@ -102,7 +102,7 @@ curl "http://localhost:8983/solr/sentiment/schema" -H 'Content-type:application/ [,bash] ---- -curl "http://localhost:8983/solr/sentiment/schema" -H 'Content-type:application/json' --data-binary '{ +curl 'http://localhost:8983/solr/sentiment/schema' -H 'Content-type:application/json' --data-binary '{ "add-field":{ "name":"name_sentiment", "type":"string", @@ -116,12 +116,12 @@ Solr's FileStore provides a distributed file storage mechanism for SolrCloud. Up [,bash] ---- -curl --data-binary @./downloads/sentiment/vocab.txt -X PUT "http://localhost:8983/api/cluster/filestore/files/models/sentiment/vocab.txt" +curl --data-binary @./downloads/sentiment/vocab.txt -X PUT 'http://localhost:8983/api/cluster/filestore/files/models/sentiment/vocab.txt' ---- [,bash] ---- -curl --data-binary @./downloads/sentiment/model.onnx -X PUT "http://localhost:8983/api/cluster/filestore/files/models/sentiment/model.onnx" +curl --data-binary @./downloads/sentiment/model.onnx -X PUT 'http://localhost:8983/api/cluster/filestore/files/models/sentiment/model.onnx' ---- .Understanding Solr's FileStore @@ -138,7 +138,7 @@ Now we'll configure the update processor that will analyze sentiment during docu [,bash] ---- -curl "http://localhost:8983/solr/sentiment/config" -H 'Content-type:application/json' -d '{ +curl 'http://localhost:8983/solr/sentiment/config' -H 'Content-type:application/json' -d '{ "add-updateprocessor": { "name": "sentimentClassifier", "class": "solr.processor.DocumentCategorizerUpdateProcessorFactory", @@ -180,7 +180,7 @@ Let's index some sample documents to see the sentiment analysis in action: [,bash] ---- -curl "http://localhost:8983/solr/sentiment/update/json?processor=sentimentClassifier&commit=true" -H 'Content-type:application/json' -d '[ +curl 'http://localhost:8983/solr/sentiment/update/json?processor=sentimentClassifier&commit=true' -H 'Content-type:application/json' -d '[ { "id":"good", "name": "that was an awesome movie!" @@ -200,7 +200,7 @@ Query the documents to see the sentiment classifications: [,bash] ---- -curl "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: [,bash] ---- -curl "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: @@ -357,7 +357,7 @@ You can then use this chain by default or explicitly reference it when indexing: [,bash] ---- -curl "http://localhost:8983/solr/sentiment/update/json?update.chain=sentiment-analysis-chain" -d '...' +curl 'http://localhost:8983/solr/sentiment/update/json?update.chain=sentiment-analysis-chain' -d '...' ---- === Practical Applications of Sentiment Analysis in Solr @@ -368,7 +368,7 @@ Create facets based on sentiment to understand opinion distribution: [,bash] ---- -curl "http://localhost:8983/solr/sentiment/select?q=*:*&facet=true&facet.field=name_sentiment" +curl 'http://localhost:8983/solr/sentiment/select?q=*:*&facet=true&facet.field=name_sentiment' ---- ==== Filtering by Sentiment @@ -377,7 +377,7 @@ Filter search results to show only documents with specific sentiment: [,bash] ---- -curl "http://localhost:8983/solr/sentiment/select?q=product_type:electronics&fq=name_sentiment:very%20good" +curl 'http://localhost:8983/solr/sentiment/select?q=product_type:electronics&fq=name_sentiment:very%20good' ---- ==== Boosting by Sentiment @@ -386,7 +386,7 @@ Boost documents with positive sentiment in search results: [,bash] ---- -curl "http://localhost:8983/solr/sentiment/select?q=*:*&defType=edismax&bq=name_sentiment:very%20good^5.0" +curl 'http://localhost:8983/solr/sentiment/select?q=*:*&defType=edismax&bq=name_sentiment:very%20good^5.0' ---- ==== Time-Based Sentiment Analysis @@ -395,7 +395,7 @@ Analyze sentiment trends over time using time-based queries and facets: [,bash] ---- -curl "http://localhost:8983/solr/sentiment/select?q=*:*&facet=true&facet.range=timestamp&facet.range.start=NOW/DAY-30DAY&facet.range.end=NOW&facet.range.gap=%2B1DAY&facet.pivot=timestamp,name_sentiment" +curl 'http://localhost:8983/solr/sentiment/select?q=*:*&facet=true&facet.range=timestamp&facet.range.start=NOW/DAY-30DAY&facet.range.end=NOW&facet.range.gap=%2B1DAY&facet.pivot=timestamp,name_sentiment' ---- === Performance Considerations diff --git a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-paramsets.adoc b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-paramsets.adoc index 645e19fc7e49..4f26c06fff3b 100644 --- a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-paramsets.adoc +++ b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-paramsets.adoc @@ -40,7 +40,7 @@ We'll specify the specific schema for a couple of fields that Solr would otherwi [,bash] ---- -curl http://localhost:8983/solr/films/schema -H 'Content-type:application/json' --data-binary '{ +curl 'http://localhost:8983/solr/films/schema' -H 'Content-type:application/json' --data-binary '{ "add-field" : [ { "name":"name", @@ -115,7 +115,7 @@ Algorithm *A* will specify using `dismax` and a `qf` parameter, while Algorithm [,bash] ---- -curl http://localhost:8983/solr/films/config/params -H 'Content-type:application/json' --data-binary '{ +curl 'http://localhost:8983/solr/films/config/params' -H 'Content-type:application/json' --data-binary '{ "set": { "algo_a":{ "defType":"dismax", diff --git a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-solrcloud.adoc b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-solrcloud.adoc index 192671490537..3fe5cfd024cb 100644 --- a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-solrcloud.adoc +++ b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-solrcloud.adoc @@ -117,7 +117,7 @@ V1 API:: ==== [,bash] ---- -curl http://host:8983/solr/{collectionName}/config -d '{"set-user-property": {"update.autoCreateFields":"false"}}' +curl 'http://host:8983/solr/{collectionName}/config' -d '{"set-user-property": {"update.autoCreateFields":"false"}}' ---- ==== @@ -126,7 +126,7 @@ V2 API:: ==== [,bash] ---- -curl http://host:8983/api/collections/{collectionName}/config -d '{"set-user-property": {"update.autoCreateFields":"false"}}' +curl 'http://host:8983/api/collections/{collectionName}/config' -d '{"set-user-property": {"update.autoCreateFields":"false"}}' ---- ==== ====== diff --git a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-techproducts.adoc b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-techproducts.adoc index e0b537d375d6..d0157a3a3ec1 100644 --- a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-techproducts.adoc +++ b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-techproducts.adoc @@ -222,7 +222,7 @@ To use curl, give the same URL shown in your browser in quotes on the command li [,bash] ---- -curl "http://localhost:8983/solr/techproducts/select?indent=on&q=*:*" +curl 'http://localhost:8983/solr/techproducts/select?indent=on&q=*:*' ---- @@ -243,7 +243,7 @@ If you prefer curl, enter something like this: [,bash] ---- -curl "http://localhost:8983/solr/techproducts/select?q=foundation" +curl 'http://localhost:8983/solr/techproducts/select?q=foundation' ---- @@ -291,7 +291,7 @@ Or, specify it with curl: [,bash] ---- -curl "http://localhost:8983/solr/techproducts/select?q=foundation&fl=id" +curl 'http://localhost:8983/solr/techproducts/select?q=foundation&fl=id' ---- @@ -449,7 +449,7 @@ The encoding for `+` is `%2B` as in: [,bash] ---- -curl "http://localhost:8983/solr/techproducts/select?q=%2Belectronics%20%2Bmusic" +curl 'http://localhost:8983/solr/techproducts/select?q=%2Belectronics%20%2Bmusic' ---- You should only get a single result. @@ -459,7 +459,7 @@ For curl, again, URL encode `+` as `%2B` as in: [,bash] ---- -curl "http://localhost:8983/solr/techproducts/select?q=%2Belectronics+-music" +curl 'http://localhost:8983/solr/techproducts/select?q=%2Belectronics+-music' ---- This time you get 13 results. diff --git a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-vectors.adoc b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-vectors.adoc index 982b5045b78a..86702eb5303c 100644 --- a/solr/solr-ref-guide/modules/getting-started/pages/tutorial-vectors.adoc +++ b/solr/solr-ref-guide/modules/getting-started/pages/tutorial-vectors.adoc @@ -41,7 +41,7 @@ First we need to update our schema to add the vector field type, the field to ho [,bash] ---- -curl http://localhost:8983/solr/films/schema -H 'Content-type:application/json' --data-binary '{ +curl 'http://localhost:8983/solr/films/schema' -H 'Content-type:application/json' --data-binary '{ "add-field-type" : { "name":"knn_vector_10", "class":"solr.DenseVectorField", diff --git a/solr/solr-ref-guide/modules/indexing-guide/pages/indexing-with-tika.adoc b/solr/solr-ref-guide/modules/indexing-guide/pages/indexing-with-tika.adoc index dffd6e6c9ad8..28d7df9431a5 100644 --- a/solr/solr-ref-guide/modules/indexing-guide/pages/indexing-with-tika.adoc +++ b/solr/solr-ref-guide/modules/indexing-guide/pages/indexing-with-tika.adoc @@ -641,7 +641,7 @@ The example below sets the `extractOnly=true` parameter to extract data without [source,bash] ---- -curl "http://localhost:8983/solr/gettingstarted/update/extract?&extractOnly=true" --data-binary @example/exampledocs/sample.html -H 'Content-type:text/html' +curl 'http://localhost:8983/solr/gettingstarted/update/extract?&extractOnly=true' --data-binary @example/exampledocs/sample.html -H 'Content-type:text/html' ---- The output includes XML generated by Tika (and further escaped by Solr's XML) using a different output format to make it more readable (`-out yes` instructs the tool to echo Solr's output to the console): @@ -657,7 +657,7 @@ The example below streams the file as the body of the POST, which does not, then [source,bash] ---- -curl "http://localhost:8983/solr/gettingstarted/update/extract?literal.id=doc6&defaultField=text&commit=true" --data-binary @example/exampledocs/sample.html -H 'Content-type:text/html' +curl 'http://localhost:8983/solr/gettingstarted/update/extract?literal.id=doc6&defaultField=text&commit=true' --data-binary @example/exampledocs/sample.html -H 'Content-type:text/html' ---- == Using Solr Cell with SolrJ diff --git a/solr/solr-ref-guide/modules/indexing-guide/pages/indexing-with-update-handlers.adoc b/solr/solr-ref-guide/modules/indexing-guide/pages/indexing-with-update-handlers.adoc index 738b1870742f..c864a62fe8d8 100644 --- a/solr/solr-ref-guide/modules/indexing-guide/pages/indexing-with-update-handlers.adoc +++ b/solr/solr-ref-guide/modules/indexing-guide/pages/indexing-with-update-handlers.adoc @@ -371,7 +371,7 @@ For example: [source,bash] ---- -curl http://localhost:8983/solr/{collectionName}/update -H "Content-Type: text/xml" --data-binary ' +curl 'http://localhost:8983/solr/{collectionName}/update' -H "Content-Type: text/xml" --data-binary ' Patrick Eagar @@ -388,7 +388,7 @@ For posting XML messages contained in a file, you can use the alternative form: [source,bash] ---- -curl http://localhost:8983/solr/{collectionName}/update -H "Content-Type: text/xml" --data-binary @myfile.xml +curl 'http://localhost:8983/solr/{collectionName}/update' -H "Content-Type: text/xml" --data-binary @myfile.xml ---- The approach above works well, but using the `--data-binary` option causes `curl` to load the whole `myfile.xml` into memory before posting it to server. @@ -397,7 +397,7 @@ This alternative `curl` command performs equivalent operations but with minimal [source,bash] ---- -curl http://localhost:8983/solr/{collectionName}/update -H "Content-Type: text/xml" -T "myfile.xml" -X POST +curl -X POST 'http://localhost:8983/solr/{collectionName}/update' -H "Content-Type: text/xml" -T "myfile.xml" ---- Responses from Solr take the form shown here: @@ -494,9 +494,9 @@ One example usage would be to copy a Solr 1.3 index (which does not have CSV res [source,bash] ---- -curl -o standard_solr_xml_format.xml "http://localhost:8983/solr/techproducts/select?q=ipod&fl=id,cat,name,popularity,price,score&wt=xml" +curl -o standard_solr_xml_format.xml 'http://localhost:8983/solr/techproducts/select?q=ipod&fl=id,cat,name,popularity,price,score&wt=xml' -curl "http://localhost:8983/solr/techproducts/update/xslt?commit=true&tr=updateXml.xsl" -H "Content-Type: text/xml" -d @standard_solr_xml_format.xml +curl 'http://localhost:8983/solr/techproducts/update/xslt?commit=true&tr=updateXml.xsl' -H "Content-Type: text/xml" -d @standard_solr_xml_format.xml ---- NOTE: You can see the opposite export/import cycle using the `tr` parameter in the xref:query-guide:response-writers.adoc#xslt-writer-example[Response Writer XSLT example]. 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 e4ef15edc967..af97bf91b8a6 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 @@ -979,7 +979,7 @@ V2 API:: [source,bash] ---- -curl "http://localhost:8983/api/collections/techproducts/schema/fields" +curl 'http://localhost:8983/api/collections/techproducts/schema/fields' ---- ==== ====== @@ -1097,7 +1097,7 @@ V2 API:: [source,bash] ---- -curl "http://localhost:8983/api/collections/techproducts/schema/dynamicfields" +curl 'http://localhost:8983/api/collections/techproducts/schema/dynamicfields' ---- ==== ====== @@ -1225,7 +1225,7 @@ V2 API:: ==== [source,bash] ---- -curl "http://localhost:8983/api/collections/techproducts/schema/fieldtypes" +curl 'http://localhost:8983/api/collections/techproducts/schema/fieldtypes' ---- ==== ====== @@ -1348,7 +1348,7 @@ V2 API:: ==== [source,bash] ---- -curl "http://localhost:8983/api/collections/techproducts/schema/copyfields" +curl 'http://localhost:8983/api/collections/techproducts/schema/copyfields' ---- ==== ====== @@ -1438,7 +1438,7 @@ V2 API:: ==== [source,bash] ---- -curl "http://localhost:8983/api/collections/techproducts/schema/name" +curl 'http://localhost:8983/api/collections/techproducts/schema/name' ---- ==== ====== @@ -1508,7 +1508,7 @@ V2 API:: ==== [source,bash] ---- -curl "http://localhost:8983/api/collections/techproducts/schema/version" +curl 'http://localhost:8983/api/collections/techproducts/schema/version' ---- ==== ====== @@ -1577,7 +1577,7 @@ V2 API:: ==== [source,bash] ---- -curl "http://localhost:8983/api/collections/techproducts/schema/uniquekey" +curl 'http://localhost:8983/api/collections/techproducts/schema/uniquekey' ---- ==== ====== @@ -1646,7 +1646,7 @@ V2 API:: ==== [source,bash] ---- -curl "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/indexing-guide/pages/schema-designer.adoc b/solr/solr-ref-guide/modules/indexing-guide/pages/schema-designer.adoc index 2ec6bb70d427..25a6b5dbdfaf 100644 --- a/solr/solr-ref-guide/modules/indexing-guide/pages/schema-designer.adoc +++ b/solr/solr-ref-guide/modules/indexing-guide/pages/schema-designer.adoc @@ -120,7 +120,7 @@ SAMPLE_FILES=( $(ls ${DIR_WITH_SAMPLE_FILES}/*.{xml,csv,json,jsonl}) ) for f in "${SAMPLE_FILES[@]}" do echo "POST'ing contents of $f to Schema Designer analyze endpoint ..." - curl -s -o /dev/null -w "%{http_code}" -XPOST \ + curl -s -o /dev/null -w "%{http_code}" \ "$SOLR_URL/api/schema-designer/analyze?configSet=${MY_NEW_SCHEMA}" -d @"$f" echo "" done diff --git a/solr/solr-ref-guide/modules/indexing-guide/pages/schemaless-mode.adoc b/solr/solr-ref-guide/modules/indexing-guide/pages/schemaless-mode.adoc index 1a29a9722ab6..64e91e481da5 100644 --- a/solr/solr-ref-guide/modules/indexing-guide/pages/schemaless-mode.adoc +++ b/solr/solr-ref-guide/modules/indexing-guide/pages/schemaless-mode.adoc @@ -46,7 +46,7 @@ V1 API:: ==== [source,bash] ---- -curl http://localhost:8983/solr/gettingstarted/schema/fields +curl 'http://localhost:8983/solr/gettingstarted/schema/fields' ---- ==== @@ -55,7 +55,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/gettingstarted/schema/fields +curl 'http://localhost:8983/api/collections/gettingstarted/schema/fields' ---- ==== ====== @@ -255,7 +255,7 @@ For example, adding a CSV document will cause unknown fields to be added, with f [source,bash] ---- -curl "http://localhost:8983/solr/gettingstarted/update?commit=true&wt=xml" -H "Content-type:application/csv" -d ' +curl 'http://localhost:8983/solr/gettingstarted/update?commit=true&wt=xml' -H "Content-type:application/csv" -d ' id,Artist,Album,Released,Rating,FromDistributor,Sold 44C,Old Shews,Mead for Walking,1988-08-13,0.01,14,0' ---- @@ -278,7 +278,7 @@ V1 API:: ==== [source,bash] ---- -curl http://localhost:8983/solr/gettingstarted/schema/fields +curl 'http://localhost:8983/solr/gettingstarted/schema/fields' ---- ==== @@ -287,7 +287,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/gettingstarted/schema/fields +curl 'http://localhost:8983/api/collections/gettingstarted/schema/fields' ---- ==== ====== @@ -338,7 +338,7 @@ V1 API:: ==== [source,bash] ---- -curl http://localhost:8983/solr/gettingstarted/schema/copyfields +curl 'http://localhost:8983/solr/gettingstarted/schema/copyfields' ---- ==== @@ -347,7 +347,7 @@ V2 API:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/gettingstarted/schema/copyfields +curl 'http://localhost:8983/api/collections/gettingstarted/schema/copyfields' ---- ==== ====== @@ -386,7 +386,7 @@ For example, after adding the above document, the "```Sold```" field has the fie [source,bash] ---- -curl "http://localhost:8983/solr/gettingstarted/update?commit=true&wt=xml" -H "Content-type:application/csv" -d ' +curl 'http://localhost:8983/solr/gettingstarted/update?commit=true&wt=xml' -H "Content-type:application/csv" -d ' id,Description,Sold 19F,Cassettes by the pound,4.93' ---- diff --git a/solr/solr-ref-guide/modules/indexing-guide/pages/transforming-and-indexing-custom-json.adoc b/solr/solr-ref-guide/modules/indexing-guide/pages/transforming-and-indexing-custom-json.adoc index 3a4fc8c081a6..2e2bd80c217b 100644 --- a/solr/solr-ref-guide/modules/indexing-guide/pages/transforming-and-indexing-custom-json.adoc +++ b/solr/solr-ref-guide/modules/indexing-guide/pages/transforming-and-indexing-custom-json.adoc @@ -350,7 +350,7 @@ V1 API:: ==== [source,bash] ---- - curl http://localhost:8983/solr/techproducts/config/params -H 'Content-type:application/json' -d '{ + curl 'http://localhost:8983/solr/techproducts/config/params' -H 'Content-type:application/json' -d '{ "set": { "my_params": { "split": "/exams", @@ -364,7 +364,7 @@ V2 API User-Managed / Standalone Solr:: ==== [source,bash] ---- -curl http://localhost:8983/api/cores/techproducts/config/params -H 'Content-type:application/json' -d '{ +curl 'http://localhost:8983/api/cores/techproducts/config/params' -H 'Content-type:application/json' -d '{ "set": { "my_params": { "split": "/exams", @@ -378,7 +378,7 @@ V2 API SolrCloud:: ==== [source,bash] ---- -curl http://localhost:8983/api/collections/techproducts/config/params -H 'Content-type:application/json' -d '{ +curl 'http://localhost:8983/api/collections/techproducts/config/params' -H 'Content-type:application/json' -d '{ "set": { "my_params": { "split": "/exams", @@ -884,7 +884,7 @@ V1 API:: ==== [source,bash] ---- - curl http://localhost:8983/solr/techproducts/config/params -H 'Content-type:application/json' -d '{ + curl 'http://localhost:8983/solr/techproducts/config/params' -H 'Content-type:application/json' -d '{ "set": { "full_txt": { "srcField": "_src_", @@ -899,7 +899,7 @@ V2 API User-Managed / Standalone Solr:: ==== [source,bash] ---- - curl http://localhost:8983/api/cores/techproducts/config/params -H 'Content-type:application/json' -d '{ + curl 'http://localhost:8983/api/cores/techproducts/config/params' -H 'Content-type:application/json' -d '{ "set": { "full_txt": { "srcField": "_src_", @@ -914,7 +914,7 @@ V2 API SolrCloud:: ==== [source,bash] ---- - curl http://localhost:8983/api/collections/techproducts/config/params -H 'Content-type:application/json' -d '{ + curl 'http://localhost:8983/api/collections/techproducts/config/params' -H 'Content-type:application/json' -d '{ "set": { "full_txt": { "srcField": "_src_", diff --git a/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc b/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc index 385ba4b3e76e..512d8e1e0110 100644 --- a/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc +++ b/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc @@ -1271,7 +1271,7 @@ EOF + [source,bash] ---- -curl -s "http://localhost:8983/solr/vectors/update?commit=true" \ +curl -s 'http://localhost:8983/solr/vectors/update?commit=true' \ -H "Content-Type: application/json" \ -d '[ {"id": "doc1", "article_vector": [0.35648, 0.11664, 0.85660, 0.25043, 0.80778, 0.08031, 0.48444, 0.39083]}, diff --git a/solr/solr-ref-guide/modules/query-guide/pages/json-combined-query-dsl.adoc b/solr/solr-ref-guide/modules/query-guide/pages/json-combined-query-dsl.adoc index ee56007dfea3..f474210452ca 100644 --- a/solr/solr-ref-guide/modules/query-guide/pages/json-combined-query-dsl.adoc +++ b/solr/solr-ref-guide/modules/query-guide/pages/json-combined-query-dsl.adoc @@ -96,7 +96,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "queries": { "lexical1": { diff --git a/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc b/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc index e2f0568cdfb9..d5eda59f1d97 100644 --- a/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc +++ b/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc @@ -48,7 +48,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "facet": { @@ -108,7 +108,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' q=memory& fq=inStock:true& json.facet={ @@ -161,7 +161,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "facet": { @@ -237,7 +237,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "facet": { @@ -269,7 +269,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "facet": { @@ -316,7 +316,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "facet": { @@ -448,7 +448,7 @@ Range facet with `ranges` [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "facet": { @@ -514,7 +514,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/spatialdata/query -d ' +curl 'http://localhost:8983/solr/spatialdata/query' -d ' { "query": "*:*", "facet": { @@ -594,7 +594,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "filter": [ @@ -628,7 +628,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "filter": [ @@ -677,7 +677,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "facet": { @@ -712,7 +712,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "facet": { @@ -780,7 +780,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "facet": { @@ -986,7 +986,7 @@ curl -sS 'http://localhost:8983/solr/gettingstarted/update?commit=true' -d '[ .Example Query [source,bash,subs="verbatim,callouts"] ---- -curl -sS http://localhost:8983/solr/gettingstarted/query -d 'rows=0&q=*:* +curl -sS 'http://localhost:8983/solr/gettingstarted/query' -d 'rows=0&q=*:* &back=*:* # <1> &fore=age:[35 TO *] # <2> &json.facet={ diff --git a/solr/solr-ref-guide/modules/query-guide/pages/json-faceting-domain-changes.adoc b/solr/solr-ref-guide/modules/query-guide/pages/json-faceting-domain-changes.adoc index 954cb50769d1..c118d2837ab7 100644 --- a/solr/solr-ref-guide/modules/query-guide/pages/json-faceting-domain-changes.adoc +++ b/solr/solr-ref-guide/modules/query-guide/pages/json-faceting-domain-changes.adoc @@ -43,7 +43,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "facet": { @@ -84,7 +84,7 @@ Here is the example of referencing DSL queries: [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "*:*", "queries": { @@ -133,7 +133,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "cat:electronics", "filter": "{!tag=MANU}manu_id_s:apple", @@ -181,7 +181,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "apple", "facet": { 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 b27a9a57f4db..0ef307e54f4c 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 "http://localhost:8983/solr/techproducts/query?q=name:iPod" +curl 'http://localhost:8983/solr/techproducts/query?q=name:iPod' ---- ==== SolrJ:: @@ -70,7 +70,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query" : "name:iPod" }' @@ -96,7 +96,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": "{!lucene df=name v=iPod}" }' @@ -122,7 +122,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": { "lucene": { @@ -185,7 +185,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query" : { "boost": { @@ -216,7 +216,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": { "boost": { @@ -256,7 +256,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": { "bool": { @@ -292,7 +292,7 @@ curl:: ==== [source,bash] ---- -curl http://localhost:8983/solr/techproducts/query -d ' +curl 'http://localhost:8983/solr/techproducts/query' -d ' { "query": { "bool": { @@ -321,7 +321,7 @@ Example of referencing <>, <