diff --git a/docs/reference/docs/bulk.asciidoc b/docs/reference/docs/bulk.asciidoc index 99926c263d9..b9b7d4751e6 100644 --- a/docs/reference/docs/bulk.asciidoc +++ b/docs/reference/docs/bulk.asciidoc @@ -56,7 +56,7 @@ newlines. Example: $ cat requests { "index" : { "_index" : "test", "_type" : "type1", "_id" : "1" } } { "field1" : "value1" } -$ curl -s -XPOST localhost:9200/_bulk --data-binary @requests; echo +$ curl -s -XPOST localhost:9200/_bulk --data-binary "@requests"; echo {"took":7,"items":[{"create":{"_index":"test","_type":"type1","_id":"1","_version":1}}]} -------------------------------------------------- diff --git a/docs/reference/getting-started.asciidoc b/docs/reference/getting-started.asciidoc index b020338803c..31f386c5444 100755 --- a/docs/reference/getting-started.asciidoc +++ b/docs/reference/getting-started.asciidoc @@ -544,7 +544,7 @@ You can download the sample dataset (accounts.json) from https://github.com/bly2 [source,sh] -------------------------------------------------- -curl -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json +curl -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary "@accounts.json" curl 'localhost:9200/_cat/indices?v' -------------------------------------------------- diff --git a/docs/reference/search/multi-search.asciidoc b/docs/reference/search/multi-search.asciidoc index a16ee8c47ee..699a9b37123 100644 --- a/docs/reference/search/multi-search.asciidoc +++ b/docs/reference/search/multi-search.asciidoc @@ -35,7 +35,7 @@ $ cat requests {"search_type" : "dfs_query_then_fetch"} {"query" : {"match_all" : {}}} -$ curl -XGET localhost:9200/_msearch --data-binary @requests; echo +$ curl -XGET localhost:9200/_msearch --data-binary "@requests"; echo -------------------------------------------------- Note, the above includes an example of an empty header (can also be just diff --git a/docs/reference/search/percolate.asciidoc b/docs/reference/search/percolate.asciidoc index 23993345f49..dc4a14e335d 100644 --- a/docs/reference/search/percolate.asciidoc +++ b/docs/reference/search/percolate.asciidoc @@ -366,7 +366,7 @@ Request: [source,js] -------------------------------------------------- -curl -XGET 'localhost:9200/twitter/tweet/_mpercolate' --data-binary @requests.txt; echo +curl -XGET 'localhost:9200/twitter/tweet/_mpercolate' --data-binary "@requests.txt"; echo -------------------------------------------------- The index `twitter` is the default index, and the type `tweet` is the default type and will be used in the case a header