mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
Several files in the REST APIs nav section are included using :leveloffset: tags. This increments headings (h2 -> h3, h3 -> h4, etc.) in those files and removes the :leveloffset: tags. Other supporting changes: * Alphabetizes top-level REST API nav items. * Change 'indices APIs' heading to 'index APIs.' * Changes 'Snapshot lifecycle management' heading to sentence case.
18 lines
468 B
Plaintext
18 lines
468 B
Plaintext
[[request-body-search-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
|