@Override public boolean isCacheable(LeafReaderContext ctx) { for (Weight w : subWeights) { if (w.isCacheable(ctx) == false) return false; } return true; }
@Override public boolean isCacheable(LeafReaderContext ctx) { for (Weight w : subWeights) { if (w.isCacheable(ctx) == false) return false; } return true; }
@Override public boolean isCacheable(LeafReaderContext ctx) { return in.isCacheable(ctx); }
@Override public boolean isCacheable(LeafReaderContext ctx) { // Both index and dv query should return the same values, so we can use // the index query's cachehelper here return indexWeight.isCacheable(ctx); }
@Override public boolean isCacheable(LeafReaderContext ctx) { return innerWeight.isCacheable(ctx); }
@Override public boolean isCacheable(LeafReaderContext ctx) { return in.isCacheable(ctx); }
@Override public boolean isCacheable(LeafReaderContext ctx) { if (weights.size() > TermInSetQuery.BOOLEAN_REWRITE_TERM_COUNT_THRESHOLD) { // Disallow caching large dismax queries to not encourage users // to build large dismax queries as a workaround to the fact that // we disallow caching large TermInSetQueries. return false; } for (Weight w : weights) { if (w.isCacheable(ctx) == false) return false; } return true; }
@Override public boolean isCacheable(LeafReaderContext ctx) { if (weights.size() > TermInSetQuery.BOOLEAN_REWRITE_TERM_COUNT_THRESHOLD) { // Disallow caching large boolean queries to not encourage users // to build large boolean queries as a workaround to the fact that // we disallow caching large TermInSetQueries. return false; } for (Weight w : weights) { if (w.isCacheable(ctx) == false) return false; } return true; }
@Override public boolean isCacheable(LeafReaderContext ctx) { return subQueryWeight.isCacheable(ctx); }
@Override public boolean isCacheable(LeafReaderContext ctx) { return in.isCacheable(ctx); } }
if (in.isCacheable(context) == false) {
if (in.isCacheable(context) == false) {
@Override public boolean isCacheable(LeafReaderContext ctx) { if (subQueryWeight.isCacheable(ctx) == false) return false; for (Weight w : valSrcWeights) { if (w.isCacheable(ctx) == false) return false; } return true; }
@Override public boolean isCacheable(LeafReaderContext ctx) { for (Weight w : subWeights) { if (w.isCacheable(ctx) == false) return false; } return true; }
@Override public boolean isCacheable(final LeafReaderContext ctx) { return mainWeight.isCacheable(ctx) && rankWeight.isCacheable(ctx); } }
@Override public boolean isCacheable(LeafReaderContext ctx) { for (Weight w : subWeights) { if (w.isCacheable(ctx) == false) return false; } return true; }
@Override public boolean isCacheable(LeafReaderContext ctx) { return in.isCacheable(ctx); } }
@Override public boolean isCacheable(LeafReaderContext ctx) { if (baseWeight.isCacheable(ctx) == false) return false; for (Weight w : drillDowns) { if (w.isCacheable(ctx) == false) return false; } return true; }
@Override public boolean isCacheable(LeafReaderContext ctx) { // Both index and dv query should return the same values, so we can use // the index query's cachehelper here return indexWeight.isCacheable(ctx); }
@Override public boolean isCacheable(LeafReaderContext ctx) { return inner.isCacheable(ctx) && valueSource.isCacheable(ctx); }