mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-13 16:35:45 +00:00
The order was random, which made it super hard to find anything. This changes the order to be alphabetically.
18 lines
462 B
Plaintext
18 lines
462 B
Plaintext
[[search-request-seq-no-primary-term]]
|
|
=== Sequence Numbers and Primary Term
|
|
|
|
Returns the sequence number and primary term of the last modification to each search hit.
|
|
See <<optimistic-concurrency-control>> for more details.
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
GET /_search
|
|
{
|
|
"seq_no_primary_term": true,
|
|
"query" : {
|
|
"term" : { "user" : "kimchy" }
|
|
}
|
|
}
|
|
--------------------------------------------------
|
|
// CONSOLE
|