Thanks for the answers.
I was able to configure the trasnportclient in java and I can access the index stored in the elastic.
At this moment I am moving to the REST client and my questions are:
1 - Having an application in java to fetch data to twitter using twitter4j, with the restclient I'm going to be able to create an index and save the information in the esticsearch and then get the same?
2 - And when I unplug my application, will the cluster and its nodes be saved?
3 -Or will I have to use a database to store the information?
ty