You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Juan Grande (Commented) (JIRA)" <ji...@apache.org> on 2011/12/30 13:43:31 UTC

[jira] [Commented] (SOLR-2280) commitWithin ignored for a delete query

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

Juan Grande commented on SOLR-2280:
-----------------------------------

Hi Jan, is there something else that I can do to keep this patch moving on?
                
> commitWithin ignored for a delete query
> ---------------------------------------
>
>                 Key: SOLR-2280
>                 URL: https://issues.apache.org/jira/browse/SOLR-2280
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>            Reporter: David Smiley
>            Assignee: Jan Høydahl
>            Priority: Minor
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2280-3x.patch, SOLR-2280-3x.patch, SOLR-2280.patch, SOLR-2280.patch, SOLR-2280.patch, SOLR-2280.patch
>
>
> The commitWithin option on an UpdateRequest is only honored for requests containing new documents.  It does not, for example, work with a delete query.  The following doesn't work as expected:
> {code:java}
> UpdateRequest request = new UpdateRequest();
> request.deleteById("id123");
> request.setCommitWithin(1000);
> solrServer.request(request);
> {code}
> In my opinion, the commitWithin attribute should be  permitted on the <delete/> xml tag as well as <add/>.  Such a change would go in XMLLoader.java and its would have some ramifications elsewhere too.  Once this is done, then UpdateRequest.getXml() can be updated to generate the right XML.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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