BoolQueryBuilder#hasClauses to take into account filterClauses too

This commit is contained in:
javanna 2015-07-06 11:00:54 +02:00 committed by Luca Cavanna
parent d225a8f56c
commit 60fa8908d8
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}
/**