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…
Reference in New Issue