# Get sequence number of document

**URL:** <https://discuss.elastic.co/t/get-sequence-number-of-document/117843>\
**Category:** Elasticsearch\
**Created:** [January 31, 2018, 3:18pm UTC](https://discuss.elastic.co/t/get-sequence-number-of-document/117843 "2018-01-31T15:18:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![agaengel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/agaengel/32/27238_2.png) [@agaengel](https://discuss.elastic.co/u/agaengel)\
**Post date:** [January 31, 2018, 3:18pm UTC](https://discuss.elastic.co/t/get-sequence-number-of-document/117843/1 "2018-01-31T15:18:22Z")

</div>

When I add an document to elasticsearch 6.0.1 I get the \_seq\_no in the response.

Is it possible the get the \_seq\_no via get document api or search request

Thanks  
Alex

---

<div class="post-metadata">

**Author:** ![nhat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nhat/32/22170_2.png) [@nhat](https://discuss.elastic.co/u/nhat)\
**Post date:** [January 31, 2018, 8:12pm UTC](https://discuss.elastic.co/t/get-sequence-number-of-document/117843/2 "2018-01-31T20:12:27Z")

</div>

This is not available in the current version.

---

<div class="post-metadata">

**Author:** ![agaengel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/agaengel/32/27238_2.png) [@agaengel](https://discuss.elastic.co/u/agaengel)\
**Post date:** [February 1, 2018, 6:57am UTC](https://discuss.elastic.co/t/get-sequence-number-of-document/117843/3 "2018-02-01T06:57:41Z")

</div>

Is this planed for a future release?

---

<div class="post-metadata">

**Author:** ![nhat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nhat/32/22170_2.png) [@nhat](https://discuss.elastic.co/u/nhat)\
**Post date:** [February 1, 2018, 4:00pm UTC](https://discuss.elastic.co/t/get-sequence-number-of-document/117843/4 "2018-02-01T16:00:59Z")

</div>

@agaengel Yes, we planned to use seqno and primary term in CAS (see [https://github.com/elastic/elasticsearch/issues/26493](https://github.com/elastic/elasticsearch/issues/26493)). However, we don't have a specific schedule for this feature.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 1, 2018, 4:01pm UTC](https://discuss.elastic.co/t/get-sequence-number-of-document/117843/5 "2018-03-01T16:01:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
