Some efficient ways to export data other then JSON from Elasticsearch.

2014-09-16 Thread John Smith
Hi, building some sort of internal tool to export data from Elasticsearch and I would liek to offer csv or XML. Just wondering what options there are... Bassically a user can login to a front end (No I cannot use what is out there, it's only a small portion of a larger tool within the

Re: Some efficient ways to export data other then JSON from Elasticsearch.

2014-09-16 Thread John Smith
Also it has to be done on the back end so JAVA it is... On Tuesday, 16 September 2014 10:04:44 UTC-4, John Smith wrote: Hi, building some sort of internal tool to export data from Elasticsearch and I would liek to offer csv or XML. Just wondering what options there are... Bassically a

Re: Some efficient ways to export data other then JSON from Elasticsearch.

2014-09-16 Thread David Pilato
You need to use the scan and scroll API for that. See  http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html#scroll-scan This class could help you in Java: 

Re: Some efficient ways to export data other then JSON from Elasticsearch.

2014-09-16 Thread John Smith
Yep, already doing that part actually... Was just wondering I guess the best way to deserialize from json to xml for instance. I suppose it's slightly off topic but what are some good json to xml converters. On Tuesday, 16 September 2014 10:23:05 UTC-4, David Pilato wrote: You need to use

Re: Some efficient ways to export data other then JSON from Elasticsearch.

2014-09-16 Thread Costin Leau
When it comes to JSON, Jackson should be at the top of your list. It's an excellent library and it has plenty of support for XML [1] [1] https://github.com/FasterXML/jackson-dataformat-xml On 9/16/14 5:48 PM, John Smith wrote: Yep, already doing that part actually... Was just wondering I

Re: Some efficient ways to export data other then JSON from Elasticsearch.

2014-09-16 Thread John Smith
Hadn't looked at Jakson for a while but it seems to do both XML and CSV (limited to json that represents tabular data) On Tuesday, 16 September 2014 10:48:58 UTC-4, John Smith wrote: Yep, already doing that part actually... Was just wondering I guess the best way to deserialize from json to