Estab: export fields to TSV


(Martin Czygan) #1

Hi,

just wanted to announce a tiny project: estab, which helps to export
document fields as tab separated values (TSV). It's nothing curl + jq[1]
couldn't do, it's just a bit simpler to use. Hope you like it.

Best,
Martin

[1] http://stedolan.github.io/jq/ |
http://stackoverflow.com/questions/18892560/is-there-any-way-in-elasticsearch-to-get-results-as-csv-file-in-curl-api/25443448#25443448

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a1e9c17d-2be9-4542-93c2-9295792518c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Jörg Prante) #2

You can also use

The plugin is for CSV output and works like the _search endpoint.

For TSV, minor adjustments can be applied to the source, or you can use
LibreOffice for export/import.

Jörg

On Fri, Aug 22, 2014 at 1:16 PM, Martin Czygan <martin.czygan@googlemail.com

wrote:

Hi,

just wanted to announce a tiny project: estab, which helps to export
document fields as tab separated values (TSV). It's nothing curl + jq[1]
couldn't do, it's just a bit simpler to use. Hope you like it.

Best,
Martin

[1] http://stedolan.github.io/jq/ |
http://stackoverflow.com/questions/18892560/is-there-any-way-in-elasticsearch-to-get-results-as-csv-file-in-curl-api/25443448#25443448

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/a1e9c17d-2be9-4542-93c2-9295792518c3%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/a1e9c17d-2be9-4542-93c2-9295792518c3%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFfT3Qr4RgDhxeEQbYjaN0EWY16RL614-SWRsb_z0sPNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Martin Czygan) #3

Hi Jörg,

Thanks, didn't know about that plugin! I installed it on Elasticsearch
1.3.2, it registers fine, but the URL is not available; maybe I am doing[1]
it wrong?

Cheers,
Martin

[1] https://gist.github.com/miku/da3e1641174c38a7a4ce

On Friday, 22 August 2014 14:38:44 UTC+2, Jörg Prante wrote:

You can also use

https://github.com/jprante/elasticsearch-csv/

The plugin is for CSV output and works like the _search endpoint.

For TSV, minor adjustments can be applied to the source, or you can use
LibreOffice for export/import.

Jörg

On Fri, Aug 22, 2014 at 1:16 PM, Martin Czygan <martin...@googlemail.com
<javascript:>> wrote:

Hi,

just wanted to announce a tiny project: estab, which helps to export
document fields as tab separated values (TSV). It's nothing curl + jq[1]
couldn't do, it's just a bit simpler to use. Hope you like it.

Best,
Martin

[1] http://stedolan.github.io/jq/ |
http://stackoverflow.com/questions/18892560/is-there-any-way-in-elasticsearch-to-get-results-as-csv-file-in-curl-api/25443448#25443448

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/a1e9c17d-2be9-4542-93c2-9295792518c3%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/a1e9c17d-2be9-4542-93c2-9295792518c3%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/605d83cf-9081-48f5-b2d5-bfb9badff507%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Jörg Prante) #4

My fault. I forgot to push out a release for the 1.3 update version.

Here it is:

./bin/plugin -install csv -url
http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-csv/1.3.0.0/elasticsearch-csv-1.3.0.0-plugin.zip

Jörg

On Fri, Aug 22, 2014 at 4:32 PM, Martin Czygan <martin.czygan@googlemail.com

wrote:

Hi Jörg,

Thanks, didn't know about that plugin! I installed it on Elasticsearch
1.3.2, it registers fine, but the URL is not available; maybe I am doing[1]
it wrong?

Cheers,
Martin

[1] https://gist.github.com/miku/da3e1641174c38a7a4ce

On Friday, 22 August 2014 14:38:44 UTC+2, Jörg Prante wrote:

You can also use

https://github.com/jprante/elasticsearch-csv/

The plugin is for CSV output and works like the _search endpoint.

For TSV, minor adjustments can be applied to the source, or you can use
LibreOffice for export/import.

Jörg

On Fri, Aug 22, 2014 at 1:16 PM, Martin Czygan martin...@googlemail.com
wrote:

Hi,

just wanted to announce a tiny project: estab, which helps to export
document fields as tab separated values (TSV). It's nothing curl + jq[1]
couldn't do, it's just a bit simpler to use. Hope you like it.

Best,
Martin

[1] http://stedolan.github.io/jq/ | http://stackoverflow.com/
questions/18892560/is-there-any-way-in-elasticsearch-to-
get-results-as-csv-file-in-curl-api/25443448#25443448

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/a1e9c17d-2be9-4542-93c2-9295792518c3%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/a1e9c17d-2be9-4542-93c2-9295792518c3%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/605d83cf-9081-48f5-b2d5-bfb9badff507%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/605d83cf-9081-48f5-b2d5-bfb9badff507%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHm-cc-v6ZRQ1LA1B4hB%2BMSqCTz%3DfLxzSxOC%2B9W3sRVqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Martin Czygan) #5

Thanks for the quick fix, it works now. Just a minor issue with nested
field values (e.g. "institution.address.street" or the like), but I'll
probably open a issue on GH for that.

Cheers,
Martin

On Friday, 22 August 2014 17:46:30 UTC+2, Jörg Prante wrote:

My fault. I forgot to push out a release for the 1.3 update version.

Here it is:

https://github.com/jprante/elasticsearch-csv/releases/tag/1.3.0.0

./bin/plugin -install csv -url
http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-csv/1.3.0.0/elasticsearch-csv-1.3.0.0-plugin.zip

Jörg

On Fri, Aug 22, 2014 at 4:32 PM, Martin Czygan <martin...@googlemail.com
<javascript:>> wrote:

Hi Jörg,

Thanks, didn't know about that plugin! I installed it on Elasticsearch
1.3.2, it registers fine, but the URL is not available; maybe I am doing[1]
it wrong?

Cheers,
Martin

[1] https://gist.github.com/miku/da3e1641174c38a7a4ce

On Friday, 22 August 2014 14:38:44 UTC+2, Jörg Prante wrote:

You can also use

https://github.com/jprante/elasticsearch-csv/

The plugin is for CSV output and works like the _search endpoint.

For TSV, minor adjustments can be applied to the source, or you can use
LibreOffice for export/import.

Jörg

On Fri, Aug 22, 2014 at 1:16 PM, Martin Czygan <martin...@googlemail.com

wrote:

Hi,

just wanted to announce a tiny project: estab, which helps to export
document fields as tab separated values (TSV). It's nothing curl + jq[1]
couldn't do, it's just a bit simpler to use. Hope you like it.

Best,
Martin

[1] http://stedolan.github.io/jq/ | http://stackoverflow.com/
questions/18892560/is-there-any-way-in-elasticsearch-to-
get-results-as-csv-file-in-curl-api/25443448#25443448

--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearc...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/a1e9c17d-2be9-4542-93c2-9295792518c3%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/a1e9c17d-2be9-4542-93c2-9295792518c3%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/605d83cf-9081-48f5-b2d5-bfb9badff507%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/605d83cf-9081-48f5-b2d5-bfb9badff507%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/12bd4136-a854-422e-94d4-e462c925fe0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #6