[
https://issues.apache.org/jira/browse/SOLR-2458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016468#comment-13016468
]
Hoss Man commented on SOLR-2458:
--------------------------------
post.jar has hardcoded assumptions about what URL you want to hit and how it
should behave -- if you want to change those assumptions there are documented
params for changing it. -Durl=... and -Dcommit=false.
if you want to post to something that isn't the XmlRequestHandler, you should
specify -Dcommit=false, and then you can follow that with an explicit execution
to commit...
java -Durl=... -jar post.jar *.cssv
java -jar post.jar
part of the reason it works the way it does now is that when commit=true it
POSTs a single commit at the end of multiple file POSTs, if we use the param
based commit it would either need to specify commit on all of them, or keep
track of the last one only add the param there.
i don't object to changing post.jar to use a commit request param instead of
sending the XML form, but this isn't a bug -- it's working as it was intended.
> post.jar fails on non-XML updateHandlers
> ----------------------------------------
>
> Key: SOLR-2458
> URL: https://issues.apache.org/jira/browse/SOLR-2458
> Project: Solr
> Issue Type: Bug
> Components: clients - java
> Affects Versions: 3.1
> Reporter: Jan Høydahl
> Labels: post.jar
>
> SimplePostTool.java by default tries to issue a commit after posting.
> Problem is that it does this by appending "<commit/>" to the stream.
> This does not work when using non-XML requesthandler, such as CSV.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]