lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENENET-90) Nunit test for TestIndexModifier.TestIndex
Date Thu, 23 Aug 2007 14:28:30 GMT
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


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.


Mime
View raw message