lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-5701) Move core closed listeners to AtomicReader
Date Fri, 23 May 2014 16:59:01 GMT


Robert Muir commented on LUCENE-5701:

Patch looks great. Can SlowCompositeReaderWrapper register the listener on 'in' somehow?

That's its coreCacheKey: so if you have a directoryreader and you wrap it multiple times (e.g.
on-the-fly), the caches are shared.

> Move core closed listeners to AtomicReader
> ------------------------------------------
>                 Key: LUCENE-5701
>                 URL:
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>             Fix For: 4.9, 5.0
>         Attachments: LUCENE-5701.patch
> Core listeners are very helpful when managing per-segment caches (filters, uninverted
doc values, etc.) yet this API is only exposed on {{SegmentReader}}. If you want to use it
today, you need to do instanceof checks, try to unwrap in case of a FilterAtomicReader and
finally fall back to a reader closed listener if every other attempt to get the underlying
SegmentReader failed.

This message was sent by Atlassian JIRA

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

View raw message