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 a JIRA.

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.

Thanks, 
Alan Woodward
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to