# Elasticsearch document version is not available?

**URL:** https://discuss.elastic.co/t/elasticsearch-document-version-is-not-available/166778
**Category:** Elasticsearch
**Created:** [February 1, 2019, 7:24pm UTC](https://discuss.elastic.co/t/elasticsearch-document-version-is-not-available/166778 "2019-02-01T19:24:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lvic](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@lvic](https://discuss.elastic.co/u/lvic)
#### Post date: [February 1, 2019, 7:24pm UTC](https://discuss.elastic.co/t/elasticsearch-document-version-is-not-available/166778/1 "2019-02-01T19:24:09Z")

</div>

ES documentation states that every document is versioned, but when i get document via REST API i don't see attribute \_version, for example:  
[http://eshost:9200/my\_index/\_search?q=my\_id:xxxx-xxxx-xxxx-xxxx](http://eshost:9200/my_index/_search?q=my_id:xxxx-xxxx-xxxx-xxxx)  
returns:  
{  
"took": 3,  
"timed\_out": false,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"skipped": 0,  
"failed": 0  
},  
"hits": {  
"total": 1,  
"max\_score": 1,  
"hits": [  
{  
"\_index": "my\_index",  
"\_type": "mytype",  
"\_id": "xxxx-xxxx-xxxx-xxxx ",  
"\_score": 1,  
"\_source": {....}  
}  
]  
}}  
Do I understand docs incorrectly ( no default version)? Or, do I need something specific in REST call to get \_version?  
Thank you

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [February 3, 2019, 1:56am UTC](https://discuss.elastic.co/t/elasticsearch-document-version-is-not-available/166778/2 "2019-02-03T01:56:40Z")

</div>

Try getting the document itself, not via a search.

ie `GET http://eshost:9200/my_index/mytype/xxxx-xxxx-xxxx-xxxx`

---

<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 3, 2019, 1:56am UTC](https://discuss.elastic.co/t/elasticsearch-document-version-is-not-available/166778/3 "2019-03-03T01:56:46Z")

</div>

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