public static void PurgeFieldCache(IndexReader r) { // this is just a hack, to get an atomic reader that contains all subreaders for insanity checks FieldCache.DEFAULT.PurgeByCacheKey(SlowCompositeReaderWrapper.Wrap(r).CoreCacheKey); }