# Timestamp mapping in Java API

**URL:** <https://discuss.elastic.co/t/timestamp-mapping-in-java-api/14913>\
**Category:** Elasticsearch\
**Created:** [December 17, 2013, 2:23pm UTC](https://discuss.elastic.co/t/timestamp-mapping-in-java-api/14913 "2013-12-17T14:23:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andra\_Bennett](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Andra\_Bennett](https://discuss.elastic.co/u/Andra_Bennett)\
**Post date:** [December 17, 2013, 2:23pm UTC](https://discuss.elastic.co/t/timestamp-mapping-in-java-api/14913/1 "2013-12-17T14:23:24Z")

</div>

I'd like to do the timestamp mapping for my index with the Java API.  
I ran across this class TimestampFieldMapper[http://elasticsearch/blob/master/src/main/java/org/elasticsearch/index/mapper/internal/TimestampFieldMapper.java](http://elasticsearch/blob/master/src/main/java/org/elasticsearch/index/mapper/internal/TimestampFieldMapper.java)in github.

What is the intended use case for it?  
Does anyone have any documentation on it, or any examples?

Thanks!  
Andra

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0368626d-3bd9-434d-92f6-36fbcc82204a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0368626d-3bd9-434d-92f6-36fbcc82204a%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 17, 2013, 4:26pm UTC](https://discuss.elastic.co/t/timestamp-mapping-in-java-api/14913/2 "2013-12-17T16:26:16Z")

</div>

Hey,

this is the underlying code for the feature described at

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

You might want to check the integration tests, which make use of the  
timestamp feature (and the fieldmapper), see  
[https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/timestamp/SimpleTimestampTests.java](https://github.com/elasticsearch/elasticsearch/blob/master/src/test/java/org/elasticsearch/timestamp/SimpleTimestampTests.java)

Hope this helps as a start...

--Alex

On Tue, Dec 17, 2013 at 3:23 PM, Andra Bennett [andrucu@gmail.com](mailto:andrucu@gmail.com) wrote:

> I'd like to do the timestamp mapping for my index with the Java API.  
> I ran across this class TimestampFieldMapper[http://elasticsearch/blob/master/src/main/java/org/elasticsearch/index/mapper/internal/TimestampFieldMapper.java](http://elasticsearch/blob/master/src/main/java/org/elasticsearch/index/mapper/internal/TimestampFieldMapper.java)in github.
> 
> What is the intended use case for it?  
> Does anyone have any documentation on it, or any examples?
> 
> Thanks!  
> Andra
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/0368626d-3bd9-434d-92f6-36fbcc82204a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0368626d-3bd9-434d-92f6-36fbcc82204a%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8O1XCe2y28nyiKDW9nD7i0rsusJHeadady6oyLM8WJ0w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8O1XCe2y28nyiKDW9nD7i0rsusJHeadady6oyLM8WJ0w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:00am UTC](https://discuss.elastic.co/t/timestamp-mapping-in-java-api/14913/3 "2017-07-06T02:00:36Z")

</div>


