mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-15 09:25:40 +00:00
BoolQueryBuilder#hasClauses to take into account filterClauses too
This commit is contained in:
parent
d225a8f56c
commit
60fa8908d8
@ -196,7 +196,7 @@ public class BoolQueryBuilder extends AbstractQueryBuilder<BoolQueryBuilder> {
|
||||
* Otherwise <code>false</code>.
|
||||
*/
|
||||
public boolean hasClauses() {
|
||||
return !(mustClauses.isEmpty() && shouldClauses.isEmpty() && mustNotClauses.isEmpty());
|
||||
return !(mustClauses.isEmpty() && shouldClauses.isEmpty() && mustNotClauses.isEmpty() && filterClauses.isEmpty());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user