[
https://issues.apache.org/jira/browse/LUCENENET-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
George Aroush closed LUCENENET-60.
----------------------------------
Resolution: Invalid
Assignee: George Aroush
This patch is a work around the real issue; thus, I will not apply it to give a
chance for the real issue to be debugged.
> "IndexModifier.DocCount" does not always give the correct result.
> -----------------------------------------------------------------
>
> Key: LUCENENET-60
> URL: https://issues.apache.org/jira/browse/LUCENENET-60
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Digy
> Assignee: George Aroush
> Priority: Minor
> Attachments: IndexModifier.patch
>
>
> to pass the nunit-test for IndexModifier, "DocCount" method should be
> changed as below. (indexWriter does not give the correct result. So use the
> indexReader).
> public virtual int DocCount()
> {
> lock (directory)
> {
> AssureOpen();
> CreateIndexReader();
> return indexReader.NumDocs();
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.