optimize filtered query with match_all filter
simply just use the query in that case, and don't add the filter overhead
This commit is contained in:
parent
8a17222ff2
commit
7a0404ac35
|
@ -124,6 +124,10 @@ public class FilteredQueryParser implements QueryParser {
|
|||
return Queries.NO_MATCH_QUERY;
|
||||
}
|
||||
}
|
||||
if (filter == Queries.MATCH_ALL_FILTER) {
|
||||
// this is an instance of match all filter, just execute the query
|
||||
return query;
|
||||
}
|
||||
|
||||
// cache if required
|
||||
if (cache) {
|
||||
|
|
Loading…
Reference in New Issue