You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2011/04/06 20:15:05 UTC

[jira] [Issue Comment Edited] (SOLR-2458) post.jar fails on non-XML updateHandlers

    [ https://issues.apache.org/jira/browse/SOLR-2458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016471#comment-13016471 ] 

Yonik Seeley edited comment on SOLR-2458 at 4/6/11 6:13 PM:
------------------------------------------------------------

bq. 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.

Although only adding a "commit" on the last update should be easy, we could also just do it via the URL.  I believe posting "?commit=true" to update handlers w/o a body works?


      was (Author: yseeley@gmail.com):
    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.

Although only adding a "commit" on the last update should be easy, we could also just do it via the URL.  I believe posting "?commit=true" to update handlers w/o a body works?

  
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org