[
https://issues.apache.org/jira/browse/LUCENE-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558113#action_12558113
]
Shai Erera commented on LUCENE-1131:
------------------------------------
This is an option, however it will result in two calls to maxDoc() (once by
maxDoc() and another by numDocs()).
Like I wrote, it's more of a convenience method and having a complete and clear
API. This way, users of Lucene won't need to ask themselves how to obtain this
number - they'll have an explicit API for that.
> Add numDeletedDocs to IndexReader
> ---------------------------------
>
> Key: LUCENE-1131
> URL: https://issues.apache.org/jira/browse/LUCENE-1131
> Project: Lucene - Java
> Issue Type: New Feature
> Reporter: Shai Erera
> Priority: Minor
> Fix For: 2.4
>
>
> Add numDeletedDocs to IndexReader. Basically, the implementation is as simple
> as doing:
> public int numDeletedDocs() {
> return deletedDocs == null ? 0 : deletedDocs.count();
> }
> in SegmentReader.
> Patch to follow to include in all IndexReader extensions.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]