Class BooleanFilter
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.request.search.filter.BooleanFilter
-
-
Constructor Summary
Constructors Constructor Description BooleanFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanFilterallOf(Filter... filters)Set the list of all filters with the given filtersBooleanFilteranyOf(Filter... filters)Set the list of any filters with the given filtersbooleanequals(Object o)List<Filter>getAll()All the filters must match.List<Filter>getAny()At least one of the filters must match.List<Filter>getNone()All the filters must not match.inthashCode()BooleanFilternoneOf(Filter... filters)Set the list of none filters with the given filtersBooleanFiltersetAll(List<Filter> all)All the filters must match.BooleanFiltersetAny(List<Filter> any)At least one of the filters must match.BooleanFiltersetNone(List<Filter> none)All the filters must not match.StringtoString()
-
-
-
Method Detail
-
allOf
public BooleanFilter allOf(Filter... filters)
Set the list of all filters with the given filters- Parameters:
filters- the filters to match on- Returns:
- This filters
-
anyOf
public BooleanFilter anyOf(Filter... filters)
Set the list of any filters with the given filters- Parameters:
filters- the filters to match on- Returns:
- This filter
-
noneOf
public BooleanFilter noneOf(Filter... filters)
Set the list of none filters with the given filters- Parameters:
filters- the filters to match on- Returns:
- This filter
-
getAll
public List<Filter> getAll()
All the filters must match. This functions as an AND condition.- Returns:
- The filters
-
getAny
public List<Filter> getAny()
At least one of the filters must match. This functions as an OR condition.- Returns:
- the filters
-
getNone
public List<Filter> getNone()
All the filters must not match. This functions as a NOT condition.- Returns:
- the filters
-
setAll
public BooleanFilter setAll(List<Filter> all)
All the filters must match. This functions as an AND condition.- Parameters:
all- The filers to match on- Returns:
this.
-
setAny
public BooleanFilter setAny(List<Filter> any)
At least one of the filters must match. This functions as an OR condition.- Parameters:
any- The filters to match on- Returns:
this.
-
setNone
public BooleanFilter setNone(List<Filter> none)
All the filters must not match. This functions as a NOT condition.- Parameters:
none- the filters to match on- Returns:
this.
-
-