public GroupingSearch setCachingInMB(double maxCacheRAMMB, boolean cacheScores) {this.maxCacheRAMMB = maxCacheRAMMB;this.maxDocsToCache = null;this.cacheScores = cacheScores;return this;}

public virtual GroupingSearch SetCachingInMB(double maxCacheRAMMB, bool cacheScores){this.maxCacheRAMMB = maxCacheRAMMB;this.maxDocsToCache = null;this.cacheScores = cacheScores;return this;}
