com.senseidb.search.client.json.req.filter
Class Filter.AndOr
java.lang.Object
com.senseidb.search.client.json.req.filter.Filter.AndOr
- All Implemented Interfaces:
- Filter
- Enclosing interface:
- Filter
public static class Filter.AndOr
- extends Object
- implements Filter
A filter that matches documents using AND or OR boolean operator on other queries. This filter is more performant then bool filter. Can be placed within queries that accept a filter.
{
"filtered" : {
"query" : {
"term" : { "name.first" : "shay" }
},
"filter" : {
"and" : [
{
"range" : {
"postDate" : {
"from" : "2010-03-01",
"to" : "2010-04-01"
}
}
},
{
"prefix" : { "name.second" : "ba" }
}
]
}
}
}
| Nested classes/interfaces inherited from interface com.senseidb.search.client.json.req.filter.Filter |
Filter.AndOr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Filter.AndOr
public Filter.AndOr(List<Filter> filters,
Operator operation)
getFilters
public List<Filter> getFilters()
getOperation
public Operator getOperation()
Copyright © 2010-2012. All Rights Reserved.