[
https://issues.apache.org/jira/browse/LUCENE-8425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16555320#comment-16555320
]
ASF subversion and git services commented on LUCENE-8425:
---------------------------------------------------------
Commit d31e4596192d2486a6272f654720d33f3ddfeda6 in lucene-solr's branch
refs/heads/branch_7x from [~simonw]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=d31e459 ]
LUCENE-8425: Expose hard live docs on SegmentReader level
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.
> 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: [email protected]
For additional commands, e-mail: [email protected]