Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Example:

[source,js]
--------------------------------------------------
PUT /emails/_doc/_bulk?refresh
PUT /emails/_bulk?refresh
{ "index" : { "_id" : 1 } }
{ "accounts" : ["hillary", "sidney"]}
{ "index" : { "_id" : 2 } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Example:

[source,js]
--------------------------------------------------
PUT /logs/_doc/_bulk?refresh
PUT /logs/_bulk?refresh
{ "index" : { "_id" : 1 } }
{ "body" : "warning: page could not be rendered" }
{ "index" : { "_id" : 2 } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PUT /museums?include_type_name=true
}
}

POST /museums/_doc/_bulk?refresh
POST /museums/_bulk?refresh
{"index":{"_id":1}}
{"location": "52.374081,4.912350", "city": "Amsterdam", "name": "NEMO Science Museum"}
{"index":{"_id":2}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Imagine a situation where you index the following documents into an index with 2

[source,js]
--------------------------------------------------
PUT /transactions/_doc/_bulk?refresh
PUT /transactions/_bulk?refresh
{"index":{"_id":1}}
{"type": "sale","amount": 80}
{"index":{"_id":2}}
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ As a quick example, the following call indexes two documents (ID 1 - John Doe an

[source,js]
--------------------------------------------------
POST /customer/_doc/_bulk?pretty
POST /customer/_bulk?pretty
{"index":{"_id":"1"}}
{"name": "John Doe" }
{"index":{"_id":"2"}}
Expand All @@ -645,7 +645,7 @@ This example updates the first document (ID of 1) and then deletes the second do

[source,sh]
--------------------------------------------------
POST /customer/_doc/_bulk?pretty
POST /customer/_bulk?pretty
{"update":{"_id":"1"}}
{"doc": { "name": "John Doe becomes Jane Doe" } }
{"delete":{"_id":"2"}}
Expand Down Expand Up @@ -692,7 +692,7 @@ You can download the sample dataset (accounts.json) from https://github.com/elas

[source,sh]
--------------------------------------------------
curl -H "Content-Type: application/json" -XPOST "localhost:9200/bank/_doc/_bulk?pretty&refresh" --data-binary "@accounts.json"
curl -H "Content-Type: application/json" -XPOST "localhost:9200/bank/_bulk?pretty&refresh" --data-binary "@accounts.json"
curl "localhost:9200/_cat/indices?v"
--------------------------------------------------
// NOTCONSOLE
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/search/validate.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ without executing it. We'll use the following test data to explain _validate:

[source,js]
--------------------------------------------------
PUT twitter/_doc/_bulk?refresh
PUT twitter/_bulk?refresh
{"index":{"_id":1}}
{"user" : "kimchy", "post_date" : "2009-11-15T14:12:12", "message" : "trying out Elasticsearch"}
{"index":{"_id":2}}
Expand Down