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


(Sumit Guptaa) #1

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


(jagdeep) #2

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.


(Sumit Guptaa) #3
  • deleted -

(David Pilato) #4

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 elastic search
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.


(Sumit Guptaa) #5

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


(Rafał Kuć) #6

Hello!

Look at the ElasticSearch Java API
(http://www.elasticsearch.org/guide/reference/java-api/). 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 elastic search 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.


(system) #7