[
https://issues.apache.org/jira/browse/SOLR-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464650
]
Hoss Man commented on SOLR-86:
------------------------------
Independent of the work being done in SOLR-20, i think it would be *very*
usefull to have a pure java replacement for post.sh -- both so people on
machines wihout bash/curl can try out the simple tutorial, and as a bare bones
example of how to do a simple POST to Solr in java.
Thorsten: depending on SOLR-85 seems unrelated to the goal of "a cross platform
replacement for the post.sh" ... I'm also not convinced this is really a use
case where depending on HttpClient (and all *it* requires) really makes sense
... if the goal is a simple demonstrative tool then it should have as few
dependencies as possible right?
I've been playing arround with your attachment a bit and i've got an alternate
version i'd like your feedback on ... for simplicity i left the code in the
util package of the main code tree, and modified the main build.xml so that
"ant example" would create example/post.jar used like so...
java -jar example/post.jar http://localhost:8983/solr/update
example/exampledocs/*.xml
attachment to follow.
> [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
> Attachments: 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.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira