# Not able to search from java

**URL:** <https://discuss.elastic.co/t/not-able-to-search-from-java/99928>\
**Category:** Elasticsearch\
**Created:** [September 9, 2017, 10:04am UTC](https://discuss.elastic.co/t/not-able-to-search-from-java/99928 "2017-09-09T10:04:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mykael](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mykael](https://discuss.elastic.co/u/mykael)\
**Post date:** [September 11, 2017, 7:56am UTC](https://discuss.elastic.co/t/not-able-to-search-from-java/99928/5 "2017-09-11T07:56:04Z")

</div>

Sounds like you're pretty much where I am.

See this thread: [ElasticSearch, NetBeans, Maven and Java](https://discuss.elastic.co/t/elasticsearch-netbeans-maven-and-java/99976)

It's got my notes on setting up a simple java program to use elasticsearch under NetBeans. The doco elastic gives us is less than helpful...

I'm writing code to index new data, but the only difference between that and a search should be the action call towards the end of the try loop. That's probably what I'll try next. (I did index first so I'd have something to search for. 😉)

---

_[View the full topic](https://discuss.elastic.co/t/not-able-to-search-from-java/99928)._
