# How to create index

**URL:** <https://discuss.elastic.co/t/how-to-create-index/35020>\
**Category:** Elasticsearch\
**Created:** [November 19, 2015, 7:29am UTC](https://discuss.elastic.co/t/how-to-create-index/35020 "2015-11-19T07:29:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arun\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Arun\_Kumar](https://discuss.elastic.co/u/Arun_Kumar)\
**Post date:** [November 19, 2015, 7:29am UTC](https://discuss.elastic.co/t/how-to-create-index/35020/1 "2015-11-19T07:29:51Z")

</div>

as in docs define these step to create index curl -XPUT 'localhost:9200/customer?pretty' but my question is here paste these browser url ya type in cmd window ... how to excute these line

---

<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 19, 2015, 7:58am UTC](https://discuss.elastic.co/t/how-to-create-index/35020/2 "2015-11-19T07:58:13Z")

</div>

Sorry. What is your question?

Open a terminal  
Paste this command  
Press enter

---

<div class="post-metadata">

**Author:** ![SuperPringles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/superpringles/32/5303_2.png) [@SuperPringles](https://discuss.elastic.co/u/SuperPringles)\
**Post date:** [November 19, 2015, 8:21am UTC](https://discuss.elastic.co/t/how-to-create-index/35020/3 "2015-11-19T08:21:31Z")

</div>

I think he's trying to ask how to use that curl -XPUT 'localhost:9200/customer?pretty' in windows command prompt.  
The command he stated is only usable in a terminal like the one Ubuntu uses. Windows cmd doesn't accept curl commands.

---

<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 19, 2015, 8:47am UTC](https://discuss.elastic.co/t/how-to-create-index/35020/4 "2015-11-19T08:47:00Z")

</div>

Unless you install Curl for windows. But I would not recommend it.

@Arun_Kumar Use any REST plugin for your browser.

I'm using SENSE most of the time.

---

<div class="post-metadata">

**Author:** ![SuperPringles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/superpringles/32/5303_2.png) [@SuperPringles](https://discuss.elastic.co/u/SuperPringles)\
**Post date:** [November 19, 2015, 8:48am UTC](https://discuss.elastic.co/t/how-to-create-index/35020/5 "2015-11-19T08:48:49Z")

</div>

Yeah that tends to be a hornets nest in my opinion.  
Marvel with Sense works wonders indeed. You can even copy the commands out of the documentation (even if they aren't meant to be used in Sense) and the program will just automatically format it in the correct syntax when you paste it.

---

<div class="post-metadata">

**Author:** ![Arun\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Arun\_Kumar](https://discuss.elastic.co/u/Arun_Kumar)\
**Post date:** [November 22, 2015, 3:29pm UTC](https://discuss.elastic.co/t/how-to-create-index/35020/6 "2015-11-22T15:29:02Z")

</div>

after paste  
query a index has been created .. brother after this how to add data  
visualize .. create report any working example i m still confuse after  
creating index how to proceed.

Thanks

_Regards_,

_Arun Kumar_

_phone : +91 8427243081 or Email : [arunanu86@gmail.com](mailto:arunanu86@gmail.com)  
 [arunanu86@gmail.com](mailto:arunanu86@gmail.com)[javastoreroom.blogspot.com](http://javastoreroom.blogspot.com)  
 [http://javastoreroom.blogspot.com](http://javastoreroom.blogspot.com)_

---

<div class="post-metadata">

**Author:** ![Arun\_Kumar](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Arun\_Kumar](https://discuss.elastic.co/u/Arun_Kumar)\
**Post date:** [December 7, 2015, 8:31am UTC](https://discuss.elastic.co/t/how-to-create-index/35020/7 "2015-12-07T08:31:07Z")

</div>

Hi David ,

Need a help i m create maven java project and add elastic search .jar file  
dependency but its show error .. google to try example but success with  
this .. can you help me a pom.xml sample to adding jar there dependency ...  
etc

thanks in advance...

_Regards_,

_Arun Kumar_

_phone : +91 8427243081 or Email : [arunanu86@gmail.com](mailto:arunanu86@gmail.com)  
 [arunanu86@gmail.com](mailto:arunanu86@gmail.com)[javastoreroom.blogspot.com](http://javastoreroom.blogspot.com)  
 [http://javastoreroom.blogspot.com](http://javastoreroom.blogspot.com)_

---

<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:** [December 7, 2015, 8:43am UTC](https://discuss.elastic.co/t/how-to-create-index/35020/8 "2015-12-07T08:43:04Z")

</div>

It's better to open a new discussion instead of using the same thread which is not related.

---

<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 5, 2017, 11:33pm UTC](https://discuss.elastic.co/t/how-to-create-index/35020/9 "2017-07-05T23:33:06Z")

</div>


