mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 15:35:05 +00:00
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;
|
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
|
// cache if required
|
||||||
if (cache) {
|
if (cache) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user