text: public override IList<MatchingDocs> GetMatchingDocs(){IList<MatchingDocs> matchingDocs = base.GetMatchingDocs();if (totalHits == NOT_CALCULATED){totalHits = 0;foreach (MatchingDocs md in matchingDocs){totalHits += md.TotalHits;}}if (totalHits <= sampleSize){return matchingDocs;}if (sampledDocs == null){samplingRate = (1.0 * sampleSize) / totalHits;sampledDocs = CreateSampledDocs(matchingDocs);}return sampledDocs;}