Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 48CEA7EF2 for ; Wed, 30 Nov 2011 02:02:06 +0000 (UTC) Received: (qmail 79671 invoked by uid 500); 30 Nov 2011 02:02:04 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 79457 invoked by uid 500); 30 Nov 2011 02:02:04 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 79450 invoked by uid 99); 30 Nov 2011 02:02:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 02:02:04 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 02:02:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AFD4FA797F for ; Wed, 30 Nov 2011 02:01:40 +0000 (UTC) Date: Wed, 30 Nov 2011 02:01:40 +0000 (UTC) From: =?utf-8?Q?Jan_H=C3=B8ydahl_=28Assigned=29_=28JIRA=29?= To: dev@lucene.apache.org Message-ID: <268739750.24405.1322618500721.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <21895220.42311291921321287.JavaMail.jira@thor> Subject: [jira] [Assigned] (SOLR-2280) commitWithin ignored for a delete query MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2280?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Jan H=C3=B8ydahl reassigned SOLR-2280: --------------------------------- Assignee: Jan H=C3=B8ydahl =20 > 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=C3=B8ydahl > Priority: Minor > Fix For: 3.6, 4.0 > > Attachments: 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 que= ry. The following doesn't work as expected: > {code:java} > UpdateRequest request =3D new UpdateRequest(); > request.deleteById("id123"); > request.setCommitWithin(1000); > solrServer.request(request); > {code} > In my opinion, the commitWithin attribute should be permitted on the xml tag as well as . Such a change would go in XMLLoader.java= and its would have some ramifications elsewhere too. Once this is done, t= hen 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 administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a 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