You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2018/07/25 07:19:00 UTC

***UNCHECKED*** [jira] [Commented] (LUCENE-8425) Expose hard live docs on SegmentReader level

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

Adrien Grand commented on LUCENE-8425:
--------------------------------------

+1 thanks!

>  Expose hard live docs on SegmentReader level
> ---------------------------------------------
>
>                 Key: LUCENE-8425
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8425
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: master (8.0), 7.5
>            Reporter: Simon Willnauer
>            Priority: Major
>             Fix For: master (8.0), 7.5
>
>         Attachments: LUCENE-8425.patch, LUCENE-8425.patch
>
>
> Today if soft deletes are used we expose a union of hard and soft deletes
>     via LeafReader#getLiveDocs. Yet, if a users wants to take advantage of
>     searching also soft-deleted documents the only option today is to search
>     all documents even though some of them are hard deleted. The recommendation
>     is to not mix those but in exceptional cases ie. when a document hits a
>     non-aborting exception during indexing the document is marked as hard
>     deleted which is the correct action. In order to filter those out having
>     access to the hard live docs on the segment reader level allows to filter out
>     these documents.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org