no need to cache match all filter
This commit is contained in:
parent
cd7b84e808
commit
a2011e0151
|
@ -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);
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue