You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2019/08/08 07:48:00 UTC
[jira] [Commented] (SOLR-13682) command line option to export data
to a file
[ https://issues.apache.org/jira/browse/SOLR-13682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16902765#comment-16902765 ]
Jan Høydahl commented on SOLR-13682:
------------------------------------
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org