# How to create index using elastic client

**URL:** <https://discuss.elastic.co/t/how-to-create-index-using-elastic-client/105993>\
**Category:** Elasticsearch\
**Created:** [November 1, 2017, 7:31am UTC](https://discuss.elastic.co/t/how-to-create-index-using-elastic-client/105993 "2017-11-01T07:31:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajeev\_Gaurav](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@Rajeev\_Gaurav](https://discuss.elastic.co/u/Rajeev_Gaurav)\
**Post date:** [November 1, 2017, 7:31am UTC](https://discuss.elastic.co/t/how-to-create-index-using-elastic-client/105993/1 "2017-11-01T07:31:24Z")

</div>

I am working on creating an index with required mapping. Currently, I am able to do with curl -X PUT command but I am exploring the use of creating index using the elastic client.

Please let me know.

Thanks,  
Rajeev

---

<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:** [November 1, 2017, 9:31am UTC](https://discuss.elastic.co/t/how-to-create-index-using-elastic-client/105993/2 "2017-11-01T09:31:11Z")

</div>

Which client?

---

<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:** [November 29, 2017, 9:31am UTC](https://discuss.elastic.co/t/how-to-create-index-using-elastic-client/105993/3 "2017-11-29T09:31:17Z")

</div>

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