You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2008/01/11 21:34:34 UTC
[jira] Commented: (LUCENE-1131) Add numDeletedDocs to IndexReader
[ https://issues.apache.org/jira/browse/LUCENE-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558111#action_12558111 ]
Yonik Seeley commented on LUCENE-1131:
--------------------------------------
How about just using maxDoc() - numDocs()?
> 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org