[ 
https://issues.apache.org/jira/browse/SOLR-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bertrand Delacretaz updated SOLR-86:
------------------------------------

    Attachment: simple-post-tool-2007-02-16.patch

Here's another update of SimplePostTool (simple-post-tool-2007-02-16.patch) 
with an improved "user interface".

In the happy case, the tool reports what it's doing in detail (yes, we could 
add a "be quiet" switch ;-), checking Solr's responses to decide whether 
POSTing went well:

$ java -jar post.jar http://localhost:8983/solr/update *.xml
SimplePostTool: $Id$
SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8, 
other encodings are not currently supported
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file hd.xml
SimplePostTool: POSTing file utf8-example.xml
SimplePostTool: COMMITting Solr index changes..
SimplePostTool: 2 files POSTed to http://localhost:8983/solr/update

$Id$ will be the SVN revision.

Solr responses are checked as Strings, this should be improved by parsing them 
as XML.

If the Solr URL does not respond, the error message should help:

$ java -jar post.jar http://localhost:8983/solr/update *.xml
SimplePostTool: $Id$
SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8, 
other encodings are not currently supported
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file hd.xml
SimplePostTool: FATAL: Connection error (is Solr running at 
http://localhost:8983/solr/update ?): java.net.ConnectException: Connection 
refused


> [PATCH]  standalone updater cli based on httpClient
> ---------------------------------------------------
>
>                 Key: SOLR-86
>                 URL: https://issues.apache.org/jira/browse/SOLR-86
>             Project: Solr
>          Issue Type: New Feature
>          Components: update
>            Reporter: Thorsten Scherler
>         Assigned To: Hoss Man
>         Attachments: simple-post-tool-2007-02-15.patch, 
> simple-post-tool-2007-02-16.patch, 
> simple-post-using-urlconnection-approach.patch, solr-86.diff, solr-86.diff
>
>
> We need a cross platform replacement for the post.sh. 
> The attached code is a direct replacement of the post.sh since it is actually 
> doing the same exact thing.
> In the future one can extend the CLI with other feature like auto commit, 
> etc.. 
> Right now the code assumes that SOLR-85 is applied since we using the servlet 
> of this issue to actually do the update.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to