Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 31210 invoked from network); 26 Jul 2008 17:06:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jul 2008 17:06:52 -0000 Received: (qmail 68417 invoked by uid 500); 26 Jul 2008 17:06:45 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 68385 invoked by uid 500); 26 Jul 2008 17:06:44 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 68374 invoked by uid 99); 26 Jul 2008 17:06:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jul 2008 10:06:44 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.233.184.225] (HELO wr-out-0506.google.com) (64.233.184.225) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jul 2008 17:05:47 +0000 Received: by wr-out-0506.google.com with SMTP id c30so3672119wra.21 for ; Sat, 26 Jul 2008 10:06:12 -0700 (PDT) Received: by 10.90.116.4 with SMTP id o4mr4247975agc.73.1217091972119; Sat, 26 Jul 2008 10:06:12 -0700 (PDT) Received: from ?10.17.4.4? ( [72.93.214.93]) by mx.google.com with ESMTPS id 7sm13402493wrh.40.2008.07.26.10.06.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 26 Jul 2008 10:06:11 -0700 (PDT) Message-Id: From: Michael McCandless To: java-user@lucene.apache.org In-Reply-To: <18666813.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: Query in IndexWriter.deleteDocuments(Term term) Date: Sat, 26 Jul 2008 13:06:10 -0400 References: <18662995.post@talk.nabble.com> <18665652.post@talk.nabble.com> <18666813.post@talk.nabble.com> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org Yes. Mike Ajay Garg wrote: > > So commit() will be available from 2.4 onwards?? > > Michael McCandless-2 wrote: >> >> >> Ajay Garg wrote: >> >>> Thanks Mike. That was quite explanatory. A couple of doubts: >> >> You're welcome! >> >>> 1. The deletions apply to buffered as well as stored-in-RAM >>> documents. >>> Right. So, if the index directory contains 1 document that matches a >>> deleteDocument query, and 1 document in RAM that contains the same >>> deleteDocument query, then, will the document-in-index-directory be >>> deleted >>> immediately, or when a flush is called. (It seems logical, that >>> irrespective >>> of the location of document, "actual" deletion occurs only when a >>> flush is >>> called .. just need to be doubly sure ...) >> >> Well ... the "actual" deletion (visible to an IndexReader that opens >> the index) is only guaranteed to be performed if you call commit() >> (trunk) or close() (2.3, trunk) on the IW. >> >> First, deleted docIDs, terms and queries are simply buffered in RAM. >> Then at some point (no guarantee on when) they are flushed into per- >> segment .del files in the directory, but, these del files are >> "unreferenced" (by a segments_N file) until commit() or close() is >> called. >> >>> 2. Yes I am planning to rewrite a project using Lucene 2.3.2. So, is >>> the >>> next version heading straight to 3.0 ??? (Sorry, if this question >>> seems to >>> be a little out of context of the current thread) >> >> The current plan is to have a 2.4 release next, then a 2.9 release >> and >> finally 3.0. It's spelled out a bit here: >> >> http://wiki.apache.org/lucene-java/Java_1.5_Migration >> >> But there are no dates attached to those bullets! >> >> Mike >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> >> > > -- > View this message in context: http://www.nabble.com/Query-in-IndexWriter.deleteDocuments%28Term-term%29-tp18662995p18666813.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org