[
https://issues.apache.org/jira/browse/SOLR-13682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16902778#comment-16902778
]
Noble Paul edited comment on SOLR-13682 at 8/9/19 7:18 AM:
-----------------------------------------------------------
bq. Perhaps optimize for the normal case of exporting a collection in the local
cluster,
this is for the most common usecase . the last part is the collection name.
Only when you are playing with Solr you run all these from the local box.
Ideally, you will be running a cluster with a handful of nodes and you would
want to run your export in another machine where Solr is not running.
TBH we should let all the commands take in a url. Most of the commands can be
run from any node by just pointing to a solr base url. We just don't do it and
I would say it's bad user UX.
bq. Also, consider making the default format jsonl
OK
bq. and default output stdout
That would be a bad experience , we are gonna emit a few megabytes of data. We
can have an extra option to do so
was (Author: noble.paul):
bq. Perhaps optimize for the normal case of exporting a collection in the local
cluster,
this is for the most common usecase . the last part is the collection name.
Only when you are playing with Solr you run all these from the local box.
Ideally, you will be running a cluster with a handful of nodes and you would
want to run your export in another machine where Solr is not running.
bq. Also, consider making the default format jsonl
OK
bq. and default output stdout
That would be a bad experience , we are gonna emit a few megabytes of data. We
can have an extra option to do so
> 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
> Assignee: Noble Paul
> Priority: Major
>
> example
> {code:java}
> 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.json}}
> additional options are
> * {{format}} : {{jsonl}} (default) or {{javabin}}
> * {{out}} : export file name
> * {{query}} : a custom query , default is **:**
> * {{fields}}: a comma separated list of fields to be exported
> * {{limit}} : no:of docs. default is 100 , send {{-1}} to import all the
> docs
> h2. Importing using {{curl}}
> importing json file
> {code:java}
> curl -X POST -d @gettingstarted.json
> http://localhost:18983/solr/gettingstarted/update/json/docs?commit=true
> {code}
> importing javabin format file
> {code:java}
> curl -X POST --header "Content-Type: application/javabin" --data-binary
> @gettingstarted.javabin
> http://localhost:7574/solr/gettingstarted/update?commit=true
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]