[
https://issues.apache.org/jira/browse/SOLR-13682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16902765#comment-16902765
]
Jan Høydahl edited comment on SOLR-13682 at 8/8/19 7:48 AM:
------------------------------------------------------------
Perhaps optimize for the normal case of exporting a collection in the local
cluster, i.e. we could have a {{\-c gettingstarted}} as an alternative to
{{\--url}}. Also, consider making the default format {{jsonl}} and default
output stdout (or at least a {{\--stdout}} option), which is what a Unix tool
would likely look and feel like and encourage e.g.
{noformat}
bin/solr export -c gettingstarted | head -5 | jq -cs '.'
bin/solr export -c gettingstarted | gz > gettingstarted.jsonl.gz
{noformat}
was (Author: janhoy):
Perhaps optimize for the normal case of exporting a collection in the local
cluster, i.e. we could have a {{-c gettingstarted}} as an alternative to
{{--url}}. Also, consider making the default format {{jsonl}} and default
output stdout (or at least a {{--stdout}} option), which is what a Unix tool
would likely look and feel like and encourage e.g.
{noformat}
bin/solr export -c gettingstarted | head -5 | jq -cs '.'
bin/solr export -c gettingstarted | gz > gettingstarted.jsonl.gz
{noformat}
> command line option to export data to a file
> --------------------------------------------
>
> Key: SOLR-13682
> URL: https://issues.apache.org/jira/browse/SOLR-13682
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Noble Paul
> Priority: Major
>
> example
> {code}
> bin/solr export --url http://localhost:8983/solr/gettingstarted
> {code}
> This will export all the docs in a collection called {{gettingstarted}} into
> a file called {{gettingstarted.javabin}}
> additional options are
> * format : jsonl or javabin
> * file : export file name .(if this starts with "http://" the output will be
> piped to that url. Can be used to pipe docs to another cluster)
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]