lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomoko Uchida (JIRA)" <>
Subject [jira] [Commented] (SOLR-6893) DIH doen't work using URL and wget
Date Sun, 28 Dec 2014 19:57:13 GMT


Tomoko Uchida commented on SOLR-6893:

At my environment (Mac OS), DIH works well with wget command.
Maybe you should remove '/#/' from request url.

I have tested two patterns with /#/ and without /#/
It works.
$ wget -O response "http://localhost:8983/solr/wikipedia/dataimport?command=full-import&indent=true"
$ wget -O response "http://localhost:8983/solr/wikipedia/dataimport?command=status&indent=true"
$ cat response 
<?xml version="1.0" encoding="UTF-8"?>

<lst name="responseHeader">
  <int name="status">0</int>
  <int name="QTime">0</int>
<lst name="initArgs">
  <lst name="defaults">
    <str name="config">db-data-config.xml</str>
<str name="command">status</str>
<str name="status">busy</str>
<str name="importResponse">A command is still running...</str>
<lst name="statusMessages">
  <str name="Time Elapsed">0:6:59.792</str>
  <str name="Total Requests made to DataSource">1</str>
  <str name="Total Rows Fetched">121772</str>
  <str name="Total Documents Processed">60885</str>
  <str name="Total Documents Skipped">0</str>
  <str name="Full Dump Started">2014-12-28 19:38:24</str>

It does not work.
$ wget -O response "http://localhost:8983/solr/#/wikipedia/dataimport?command=full-import&indent=true"

Please try again after removing '#' character (this character has special meaning in URI specification.)

> DIH doen't work using URL and wget
> ----------------------------------
>                 Key: SOLR-6893
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.6.1, 4.8.1, 4.10.2
>         Environment: Linux (Ubuntu, CentOS)
>            Reporter: Dani
>            Priority: Minor
> I put this URL on browser and import correctly starts:
> http://localhost:8983/solr/#/sintesicontratti/dataimport//importazione?command=full-import&entity=fileImport&clean=true&commit=true
> But if I use wget it doens't work:
> wget "http://localhost:8983/solr/#/sintesicontratti/dataimport//importazione?command=full-import&entity=fileImport&clean=true&commit=true"
> nor also using escape:
> wget "http://localhost:8983/solr/#/sintesicontratti/dataimport//importazione?command=full-import\&entity=fileImport\&clean=true\&commit=true"

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message