com.senseidb.search.client.json.req.filter
Class Filter.AndOr

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface com.senseidb.search.client.json.req.filter.Filter
Filter.AndOr
 
Constructor Summary
Filter.AndOr(List<Filter> filters, Operator operation)
           
 
Method Summary
 List<Filter> getFilters()
           
 Operator getOperation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filter.AndOr

public Filter.AndOr(List<Filter> filters,
                    Operator operation)
Method Detail

getFilters

public List<Filter> getFilters()

getOperation

public Operator getOperation()


Copyright © 2010-2012. All Rights Reserved.