From lucene-net-dev-return-901-apmail-incubator-lucene-net-dev-archive=incubator.apache.org@incubator.apache.org Thu Aug 23 14:31:05 2007 Return-Path: Delivered-To: apmail-incubator-lucene-net-dev-archive@locus.apache.org Received: (qmail 98647 invoked from network); 23 Aug 2007 14:31:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Aug 2007 14:31:05 -0000 Received: (qmail 11536 invoked by uid 500); 23 Aug 2007 14:31:01 -0000 Delivered-To: apmail-incubator-lucene-net-dev-archive@incubator.apache.org Received: (qmail 11520 invoked by uid 500); 23 Aug 2007 14:31:01 -0000 Mailing-List: contact lucene-net-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@incubator.apache.org Delivered-To: mailing list lucene-net-dev@incubator.apache.org Received: (qmail 11511 invoked by uid 99); 23 Aug 2007 14:31:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 07:31:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 14:31:32 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D875F71420A for ; Thu, 23 Aug 2007 07:30:30 -0700 (PDT) Message-ID: <30362043.1187879430884.JavaMail.jira@brutus> Date: Thu, 23 Aug 2007 07:30:30 -0700 (PDT) From: "Digy (JIRA)" To: lucene-net-dev@incubator.apache.org Subject: [jira] Updated: (LUCENENET-90) Nunit test for TestIndexModifier.TestIndex In-Reply-To: <1129235.1187879310683.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENENET-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Digy updated LUCENENET-90: -------------------------- Attachment: IndexWriter.patch > Nunit test for TestIndexModifier.TestIndex > ------------------------------------------ > > Key: LUCENENET-90 > URL: https://issues.apache.org/jira/browse/LUCENENET-90 > Project: Lucene.Net > Issue Type: Bug > Reporter: Digy > Priority: Minor > Attachments: IndexModifier.patch, IndexWriter.patch, TestIndexModifier.patch > > > IndexModifier uses DocCount of IndexWriter which returns the count of all documents(including deleted ones) unless segments are merged(ex. when explicitely calling Optimize). Changing the DocCount of IndexWriter effects other parts of the project. So I added a new method "DocCountExcludingDeletedDocs" to IndexWriter and used it in IndexModifier. > With this patch Nunit test succeeds. > I will also add a patch for a new test method "TestIndexModifierDocCount" into the TestIndexModifier.cs -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.