You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2011/01/24 21:34:43 UTC

[jira] Commented: (LUCENE-2887) Remove/deprecate IndexReader.undeleteAll

    [ https://issues.apache.org/jira/browse/LUCENE-2887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985967#action_12985967 ] 

Andrzej Bialecki  commented on LUCENE-2887:
-------------------------------------------

The MultiPassIndexSplitter won't work without this API. It can be modified to use a subclass of IndexReader & term / postings enumerators to restore the current behavior, or it can be rewritten entirely as a (fabled) SinglePassIndexSplitter. ;)

> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org