lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Woodward <>
Subject Merge information in segment files
Date Fri, 16 Nov 2012 12:01:16 GMT
Hi all,

Is there any way of finding out if a segment is the result of a merge, or if it's just new
data?  I can't find anything in SegmentInfo that records this - if it isn't there, I'll open

Here's the use case:  I need to reload ExternalFileField data when segments are merged, as
the internal docids will all have changed, invalidating the EFF caches.  However, new segments
can just use default values (the EFF is used to store things like click rates, which are all
zero for new data).  At the moment, caches are refreshed after every commit.  But cache reloading
is heavy - if we can restrict it to only reload after a merge, then we save a lot of wasted
CPU and IO cycles.

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

View raw message