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
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
Try getting the document itself, not via a search.
ie GET http://eshost:9200/my_index/mytype/xxxx-xxxx-xxxx-xxxx
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.