Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 93306 invoked from network); 3 Jun 2010 20:02:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jun 2010 20:02:39 -0000 Received: (qmail 74417 invoked by uid 500); 3 Jun 2010 20:02:37 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 74285 invoked by uid 500); 3 Jun 2010 20:02:37 -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 74277 invoked by uid 99); 3 Jun 2010 20:02:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 20:02:36 +0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.83.48] (HELO mail-gw0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 20:02:31 +0000 Received: by gwb17 with SMTP id 17so535182gwb.35 for ; Thu, 03 Jun 2010 13:02:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.168.18 with SMTP id q18mr9099454ybe.326.1275595329665; Thu, 03 Jun 2010 13:02:09 -0700 (PDT) Received: by 10.151.11.20 with HTTP; Thu, 3 Jun 2010 13:02:09 -0700 (PDT) In-Reply-To: <492379B6AA909E4FAF672AACCA0EADC25CC1F3AF30@PHXCCRPRD02.adprod.bmc.com> References: <492379B6AA909E4FAF672AACCA0EADC25CC1F3AF30@PHXCCRPRD02.adprod.bmc.com> Date: Thu, 3 Jun 2010 16:02:09 -0400 Message-ID: Subject: Re: numDeletedDocs() From: Michael McCandless To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hmm... I don't think IndexWriter has ever had a numDeletedDocs() (w/ no par= ams)? (IndexReader does). Mike On Thu, Jun 3, 2010 at 3:50 PM, Woolf, Ross wrote: > There seems to be a mismatch between the IndexWriter().numDeletedDocs() m= ethod as stated in the javadocs supplied in the 2.9.2 download and what is = actual. > > JavaDocs for 2.9.2 as came with the 2.9.2 download > > numDeletedDocs > public int numDeletedDocs()Returns the number of deleted documents. =A0(N= o parameter required) > > ---------------------- > Source code for 2.9.2 > =A0public int numDeletedDocs(SegmentInfo info) throws IOException { =A0(P= arameter required) > > > Why is there no longer a no parameter numDeleteDocs as stated in the Java= Docs? =A0I'm not sure how I use the "experimental" SegmentInfo just to get = the delete count in my index? =A0Any help appreciated. > > > --------------------------------------------------------------------- > 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