parent
606b7ea139
commit
b302b09b85
|
@ -49,7 +49,8 @@ You can see the assigned sequence number and primary term in the
|
||||||
"result": "created"
|
"result": "created"
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE[s/"_seq_no" : \d+/"_seq_no" : $body._seq_no/ s/"_primary_term" : 2/"_primary_term" : $body._primary_term/]
|
// TESTRESPONSE[s/"_seq_no": 362/"_seq_no": $body._seq_no/]
|
||||||
|
// TESTRESPONSE[s/"_primary_term": 2/"_primary_term": $body._primary_term/]
|
||||||
|
|
||||||
|
|
||||||
Elasticsearch keeps tracks of the sequence number and primary term of the last
|
Elasticsearch keeps tracks of the sequence number and primary term of the last
|
||||||
|
@ -81,7 +82,8 @@ returns:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TESTRESPONSE[s/"_seq_no" : \d+/"_seq_no" : $body._seq_no/ s/"_primary_term" : 2/"_primary_term" : $body._primary_term/]
|
// TESTRESPONSE[s/"_seq_no": 362/"_seq_no": $body._seq_no/]
|
||||||
|
// TESTRESPONSE[s/"_primary_term": 2/"_primary_term": $body._primary_term/]
|
||||||
|
|
||||||
|
|
||||||
Note: The <<search-search,Search API>> can return the `_seq_no` and `_primary_term`
|
Note: The <<search-search,Search API>> can return the `_seq_no` and `_primary_term`
|
||||||
|
|
|
@ -250,7 +250,6 @@ following:
|
||||||
"query": {... }
|
"query": {... }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
----
|
----
|
||||||
// NOTCONSOLE
|
// NOTCONSOLE
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ was provided in the original index request:
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
PUT _ingest/pipeline/my_index
|
PUT _ingest/pipeline/my_index
|
||||||
{
|
{
|
||||||
"description": "use index:my_index and type:_doc",
|
"description": "use index:my_index",
|
||||||
"processors": [
|
"processors": [
|
||||||
{
|
{
|
||||||
"script": {
|
"script": {
|
||||||
|
|
|
@ -19,7 +19,7 @@ GET /_search
|
||||||
"ids": [ "1", "4", "100" ],
|
"ids": [ "1", "4", "100" ],
|
||||||
"organic": {
|
"organic": {
|
||||||
"match": {
|
"match": {
|
||||||
"description": "brown shoes"
|
"description": "iphone"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,7 +211,7 @@ in some indices but not all:
|
||||||
"aggregatable": false
|
"aggregatable": false
|
||||||
},
|
},
|
||||||
"unmapped": { <2>
|
"unmapped": { <2>
|
||||||
"indices": ["index5"]
|
"indices": [ "index5" ],
|
||||||
"searchable": false,
|
"searchable": false,
|
||||||
"aggregatable": false
|
"aggregatable": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -475,7 +475,7 @@ potential errors of individual queries. The response has the following format:
|
||||||
{
|
{
|
||||||
"_index": "my_index",
|
"_index": "my_index",
|
||||||
"_id": "1960795"
|
"_id": "1960795"
|
||||||
}, [...]
|
}, ...
|
||||||
],
|
],
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
|
@ -486,7 +486,7 @@ potential errors of individual queries. The response has the following format:
|
||||||
"_score": 7.0556192
|
"_score": 7.0556192
|
||||||
},
|
},
|
||||||
"rating": 1
|
"rating": 1
|
||||||
}, [...]
|
}, ...
|
||||||
],
|
],
|
||||||
"metric_details": { <6>
|
"metric_details": { <6>
|
||||||
"precision": {
|
"precision": {
|
||||||
|
@ -495,7 +495,7 @@ potential errors of individual queries. The response has the following format:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"my_query_id2" : { [...] }
|
"my_query_id2": { [... ] }
|
||||||
},
|
},
|
||||||
"failures": { [... ] }
|
"failures": { [... ] }
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,7 +186,8 @@ Response:
|
||||||
"_type": "_doc",
|
"_type": "_doc",
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_score": ..,
|
"_score": ..,
|
||||||
"_source": {...},
|
"_source": {...
|
||||||
|
},
|
||||||
"fields": { "country": [ "Canada" ] },
|
"fields": { "country": [ "Canada" ] },
|
||||||
"inner_hits": {
|
"inner_hits": {
|
||||||
"by_location": {
|
"by_location": {
|
||||||
|
@ -209,9 +210,8 @@ Response:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
....
|
...
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue