lucene-dev mailing list archives

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


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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message