_version field not consistent


Recently, I realized that once a document is updated on Elasticsearch, the _version number is changed accordingly, but Kibana still shows version 1. Plus, in the JSON representation of the document, two version fields are shown.

Is this expected behaviour?

Thanks in advance.

(Nathan Reese) #2

_version is a meta field maintained by elastic search. @version is a document field (because its under _source). The two are not related in any way. @version is just an arbitrary name and could just as well have been called @myVersionNumber.

(system) #3

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