[
https://issues.apache.org/jira/browse/LUCENE-2887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986752#action_12986752
]
Michael McCandless commented on LUCENE-2887:
--------------------------------------------
bq. I think it is correct to say that "if the result of ir.numDeletedDocs() is
N, then calling ir.undeleteAll() will undelete exactly N documents"... or am I
missing it?
That's right... it's just that you can no longer "rely" on how IW reclaims del
docs.
But I'll just commit that "clarification" to the javadoc and leave the API for
now...
> Remove/deprecate IndexReader.undeleteAll
> ----------------------------------------
>
> Key: LUCENE-2887
> URL: https://issues.apache.org/jira/browse/LUCENE-2887
> Project: Lucene - Java
> Issue Type: Improvement
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 3.1
>
>
> This API is rather dangerous in that it's "best effort" since it can only
> un-delete docs that have not yet been merged away, or, dropped (as of
> LUCENE-2010).
> Given that it exposes impl details of how Lucene prunes deleted docs, I think
> we should remove this API.
> Are there legitimate use cases....?
--
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]