no need to cache match all filter

This commit is contained in:
kimchy 2010-09-17 16:47:35 +02:00
parent cd7b84e808
commit a2011e0151
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ public class MatchAllQueryParser extends AbstractIndexComponent implements XCont
}
if (boost == 1.0f && normsField == null) {
return new DeletionAwareConstantScoreQuery(parseContext.cacheFilterIfPossible(Queries.MATCH_ALL_FILTER));
return new DeletionAwareConstantScoreQuery(Queries.MATCH_ALL_FILTER, true); // no need to cache a MATCH ALL FILTER
}
MatchAllDocsQuery query = new MatchAllDocsQuery(normsField);

View File

@ -60,7 +60,7 @@ public class FacetsPhase implements SearchPhase {
// run global facets ...
if (context.searcher().globalCollectors() != null) {
Query query = new DeletionAwareConstantScoreQuery(Queries.MATCH_ALL_FILTER); // no need to cache a MATCH ALL FILTER
Query query = new DeletionAwareConstantScoreQuery(Queries.MATCH_ALL_FILTER, true); // no need to cache a MATCH ALL FILTER
if (context.types().length > 0) {
if (context.types().length == 1) {
String type = context.types()[0];