Tried the following
wget -O 2019.csv
http://xx.xxx.xxx.xxx:8983/solr/data_2019/select?q=*%3A*&rows=20000&wt=csv

It is not saving the total rows specified but just a few - saved [9042/9042]

And the result is not in csv format
{
  "responseHeader":{
    "status":0,
    "QTime":0,
    "params":{
      "q":"*:*"}},
  "response":{"numFound":8634628,"start":0,"numFoundExact":true,"docs":[
      {
        "country":["IN"],
        "date_c":"2019-01-01T18:30:00Z",
        "cpv":["29124000"],
        "_version_":1693668431515090947},
      {
        "country":["PT"],
        "date_c":"2018-03-14T18:30:00Z",

On Fri, 25 Feb 2022 at 21:46, Andy Lester <a...@petdance.com> wrote:

>
>
> > On Feb 25, 2022, at 8:19 AM, Anuj Bhargava <anujb...@gmail.com> wrote:
> >
> > I tried with 10000 records. Need to download all
> >
> http://xx.xxx.xxx.xxx:8983/solr/data_2019/select?q=*%3A*&rows=10000&wt=csv
> <
> http://xx.xxx.xxx.xxx:8983/solr/data_2019/select?q=*%3A*&rows=10000&wt=csv
> >
> Use a command-line utility like curl or wget to pull it down.

Reply via email to