# How to send "Hello World " from Netbeans into Elasticsearch Index

**URL:** <https://discuss.elastic.co/t/how-to-send-hello-world-from-netbeans-into-elasticsearch-index/184728>\
**Category:** Elasticsearch\
**Created:** [June 7, 2019, 9:34am UTC](https://discuss.elastic.co/t/how-to-send-hello-world-from-netbeans-into-elasticsearch-index/184728 "2019-06-07T09:34:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samyo](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@samyo](https://discuss.elastic.co/u/samyo)\
**Post date:** [June 7, 2019, 9:34am UTC](https://discuss.elastic.co/t/how-to-send-hello-world-from-netbeans-into-elasticsearch-index/184728/1 "2019-06-07T09:34:57Z")

</div>

hello Folks,  
i am new on REST API in Java in order to send a simple String "Hello World" from Java Netbeans to Elasticsearch Index.  
Can anybody please tell me how to write the Connection String in Netbeans to Put(send) the String "Hello World" in Elasticsearch Index?

I will be thankfull for any Answer.

---

<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:** [June 7, 2019, 9:48am UTC](https://discuss.elastic.co/t/how-to-send-hello-world-from-netbeans-into-elasticsearch-index/184728/2 "2019-06-07T09:48:50Z")

</div>

What did you try so far from [the documentation](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html)?

Anyway here is an example:

> **[dadoonet/elasticsearch-java-client-demo](https://github.com/dadoonet/elasticsearch-java-client-demo)**
>
> Elasticsearch Client Java Sample project. Contribute to dadoonet/elasticsearch-java-client-demo development by creating an account on GitHub.

Specifically this line of code:

> <https://github.com/dadoonet/elasticsearch-java-client-demo/blob/master/src/main/java/fr/pilato/test/elasticsearch/hlclient/App.java#L69>

---

<div class="post-metadata">

**Author:** ![samyo](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@samyo](https://discuss.elastic.co/u/samyo)\
**Post date:** [June 7, 2019, 10:17am UTC](https://discuss.elastic.co/t/how-to-send-hello-world-from-netbeans-into-elasticsearch-index/184728/3 "2019-06-07T10:17:42Z")

</div>

thx for Response, i did not try anything yet from [the documentation](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html)?

it looks complicated for me, i though with just one Connection line in Netbeans , so that java will send the String "Hello World" automaticly to Elasticsearch, but it seems i have to download the jar\_files for the Elasticsearch librarys [https://jar-download.com/artifacts/org.elasticsearch.client/elasticsearch-rest-high-level-client/6.2.4/source-code](https://jar-download.com/artifacts/org.elasticsearch.client/elasticsearch-rest-high-level-client/6.2.4/source-code) , and what should i exactly import in Netbeans?

---

<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:** [June 7, 2019, 12:11pm UTC](https://discuss.elastic.co/t/how-to-send-hello-world-from-netbeans-into-elasticsearch-index/184728/4 "2019-06-07T12:11:03Z")

</div>

You're new to Java/Maven/Gradle, right?

Anyway that's more a netbean question than an elasticsearch question. I don't know netbean so I guess you'd better ask on their forum.

If you have any question regarding to elasticsearch client feel free to ask here.

---

<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, 2019, 12:11pm UTC](https://discuss.elastic.co/t/how-to-send-hello-world-from-netbeans-into-elasticsearch-index/184728/5 "2019-07-05T12:11:13Z")

</div>

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