mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Fix docs
After updating to master we are actually testing them.
This commit is contained in:
parent
03975ac056
commit
c2bc36524f
2 changed files with 7 additions and 5 deletions
|
@ -30,7 +30,8 @@ The result of the above index operation is:
|
|||
"_type" : "tweet",
|
||||
"_id" : "1",
|
||||
"_version" : 1,
|
||||
"created" : true
|
||||
"created" : true,
|
||||
"forced_refresh": false
|
||||
}
|
||||
--------------------------------------------------
|
||||
// TESTRESPONSE[s/"successful" : 2/"successful" : 1/]
|
||||
|
@ -221,7 +222,8 @@ The result of the above index operation is:
|
|||
"_type" : "tweet",
|
||||
"_id" : "6a8ca01c-7896-48e9-81cc-9f70661fcb32",
|
||||
"_version" : 1,
|
||||
"created" : true
|
||||
"created" : true,
|
||||
"forced_refresh": false
|
||||
}
|
||||
--------------------------------------------------
|
||||
// TESTRESPONSE[s/6a8ca01c-7896-48e9-81cc-9f70661fcb32/$body._id/ s/"successful" : 2/"successful" : 1/]
|
||||
|
|
|
@ -78,7 +78,7 @@ many times they modify the shard.
|
|||
|
||||
These will create a document and immediately refresh the index so it is visible:
|
||||
|
||||
[source,json]
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
PUT /test/test/1?refresh
|
||||
{"test": "test"}
|
||||
|
@ -90,7 +90,7 @@ PUT /test/test/2?refresh=true
|
|||
These will create a document without doing anything to make it visible for
|
||||
search:
|
||||
|
||||
[source,json]
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
PUT /test/test/3
|
||||
{"test": "test"}
|
||||
|
@ -101,7 +101,7 @@ PUT /test/test/4?refresh=true
|
|||
|
||||
This will create a document and wait for it to become visible for search:
|
||||
|
||||
[source,json]
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
PUT /test/test/4?refresh=wait_for
|
||||
{"test": "test"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue