Lucene.Net.Search.QueryUtils.PurgeFieldCache C# (CSharp) Method

PurgeFieldCache() public static method

public static PurgeFieldCache ( IndexReader r ) : void
r IndexReader
return void
        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);
        }