lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <>
Subject Re: Does anyone have tips on managing cached filters?
Date Mon, 26 Nov 2012 22:31:04 GMT
On Thu, Nov 22, 2012 at 11:10 PM, Trejkaz <> wrote:

> As for actually doing the invalidation, CachingWrapperFilter itself
> doesn't appear to have any mechanism for invalidation at all, so I
> imagine I will be building a variation of it with additional methods
> to invalidate parts of the cache.
Actually it does, it uses a weakhashmap keyed on either the segment
(core+deletes) or just the segment's core.

The former (recacheDeletes=true) "bakes the deletes" into the bitset, but
at the expense of being invalidated much more often.
The latter (recacheDeletes=false) intersects the deletes at search time, so
slightly slower but stays cached even as documents become deleted for that

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message