# Use a timestamp to version documents in an index ingested with 'org.elasticsearch.hadoop.hive.EsStorageHandler'

**URL:** <https://discuss.elastic.co/t/use-a-timestamp-to-version-documents-in-an-index-ingested-with-org-elasticsearch-hadoop-hive-esstoragehandler/110774>\
**Category:** Elasticsearch\
**Created:** [December 7, 2017, 11:42pm UTC](https://discuss.elastic.co/t/use-a-timestamp-to-version-documents-in-an-index-ingested-with-org-elasticsearch-hadoop-hive-esstoragehandler/110774 "2017-12-07T23:42:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Henricks](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@Matthew\_Henricks](https://discuss.elastic.co/u/Matthew_Henricks)\
**Post date:** [December 7, 2017, 11:42pm UTC](https://discuss.elastic.co/t/use-a-timestamp-to-version-documents-in-an-index-ingested-with-org-elasticsearch-hadoop-hive-esstoragehandler/110774/1 "2017-12-07T23:42:13Z")

</div>

Hi Everyone,

I'm looking to update/version a series of documents based on a timestamp within them. For this process, it seems like the best of doing so would be to use external versioning with the index API - datetime.ticks as the version number.

One of my main issues in doing this is that I can't find good documentation on the connector: org.elasticsearch.hadoop.hive.EsStorageHandler

Also, I want to use the datetime within the object to version.

We currently use ES 5.0. Is there a way to implement this functionality pulling data from HIVE?

Thanks for the help!  
Matt Henricks

---

<div class="post-metadata">

**Author:** ![Matthew\_Henricks](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@Matthew\_Henricks](https://discuss.elastic.co/u/Matthew_Henricks)\
**Post date:** [January 3, 2018, 4:14pm UTC](https://discuss.elastic.co/t/use-a-timestamp-to-version-documents-in-an-index-ingested-with-org-elasticsearch-hadoop-hive-esstoragehandler/110774/2 "2018-01-03T16:14:20Z")

</div>

Has anyone had experience with external versioning before in the HIVE environment? A simple example would be great

---

<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:** [January 31, 2018, 4:14pm UTC](https://discuss.elastic.co/t/use-a-timestamp-to-version-documents-in-an-index-ingested-with-org-elasticsearch-hadoop-hive-esstoragehandler/110774/3 "2018-01-31T16:14:35Z")

</div>

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