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.