# Java Client to insert index with mapping

**URL:** <https://discuss.elastic.co/t/java-client-to-insert-index-with-mapping/84538>\
**Category:** Elasticsearch\
**Created:** [May 4, 2017, 11:07am UTC](https://discuss.elastic.co/t/java-client-to-insert-index-with-mapping/84538 "2017-05-04T11:07:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zegdene](https://avatars.discourse-cdn.com/v4/letter/z/76d3ee/32.png) [@zegdene](https://discuss.elastic.co/u/zegdene)\
**Post date:** [May 4, 2017, 11:07am UTC](https://discuss.elastic.co/t/java-client-to-insert-index-with-mapping/84538/1 "2017-05-04T11:07:44Z")

</div>

Hi,  
I'm new in elasticsearch, i need to insert index with mapping , i don't find a simple code to use  
can help me with a simple code to mapping the index  
Thank you

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 4, 2017, 1:56pm UTC](https://discuss.elastic.co/t/java-client-to-insert-index-with-mapping/84538/2 "2017-05-04T13:56:28Z")

</div>

I believe this is the same question as you already posted there:

> [@Create index mapping with jest and transport client](https://discuss.elastic.co/t/create-index-mapping-with-jest-and-transport-client/84522):
>
> Hi, I need to create and update index mapping using jest and transport client , i don't find a simple example can help please thank you

No need to post it multiple times. Thanks.

---

<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:** [June 1, 2017, 2:00pm UTC](https://discuss.elastic.co/t/java-client-to-insert-index-with-mapping/84538/3 "2017-06-01T14:00:16Z")

</div>

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