lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrien Grand (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-8425) Expose hard live docs on SegmentReader level
Date Tue, 24 Jul 2018 14:45:00 GMT

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

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

I wish we didn't have to make SegmentReader constructors more complex but I don't have a better
idea. +1

>  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
>
>
> 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


Mime
View raw message