Reading Data from Elastic Search and write into file using java Program

hi all

can anybody give me how we can connect to elastic search using java program and read the data from elastic search and write the content into files...

Regards,
Sumit Gupta

There are multiple ways... we suggested Scorll for your previous
question on how to dump data from Es to couchDB..

Not sure why u are asking same question again and again.

On Jun 22, 11:50 am, Sumit Guptaa sumit.gupta....@gmail.com wrote:

hi all,

can anybody tell me how we can read data from Elastic Search and write into
files using java program....

pl help me

thanx in advance

Regards,
Sumit Gupta

--
View this message in context:http://elasticsearch-users.115913.n3.nabble.com/Reading-Data-from-Ela...
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

  • deleted -

Lol ! Sounds like a spam !

Sumit, I'm afraid that we are (at least I am) not going to write YOUR code.

Write to a filesystem is not an ES feature. Read the IO java functions.
To get from ES,once again, have a look at the scan and scroll functions.

If you have problems with that, gist your java code and we will help you.

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 22 juin 2012 à 10:59, Sumit Guptaa sumit.gupta.ngi@gmail.com a écrit :

hi jagdeep

can u give me code or link that help me to reading data from Elasticsearch
and writing into files using java program..

thanx

Regards,
Sumit Gupta

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Reading-Data-from-Elastic-Search-and-write-into-file-using-java-Program-tp4019593p4019602.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

hi dadoonet

i am not talking about to writing my code i just talking about where we write curl query for fetching the data from elastic search using java program..

Regards
Sumit Gupta

Hello!

Look at the Elasticsearch Java API
(Elasticsearch Platform — Find real-time answers at scale | Elastic). You can see
how to connect to your Elasticsearch instance using Java. Then
writing your results to file shouldn't be a problem.

--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - Elasticsearch

hi dadoonet

i am not talking about to writing my code i just talking about where we
write curl query for fetching the data from Elasticsearch using java
program..

Regards
Sumit Gupta

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Reading-Data-from-Elastic-Search-and-write-into-file-using-java-Program-tp4019593p4019606.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.