lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-2280) commitWithin ignored for a delete query
Date Tue, 24 May 2011 13:51:47 GMT

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

Jan Høydahl commented on SOLR-2280:
-----------------------------------

+1 I have client side code explicitly working around this bug, would be nice with a fix in
3.2

> 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
>            Priority: Minor
>
> 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.
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


Mime
View raw message