org.elasticsearch.index.query.xcontent
Class OrFilterBuilder

java.lang.Object
  extended by org.elasticsearch.index.query.xcontent.BaseFilterBuilder
      extended by org.elasticsearch.index.query.xcontent.OrFilterBuilder
All Implemented Interfaces:
ToXContent, XContentFilterBuilder

public class OrFilterBuilder
extends BaseFilterBuilder

A filter that matches documents matching boolean combinations of other filters.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
OrFilterBuilder(XContentFilterBuilder... filters)
           
 
Method Summary
 OrFilterBuilder add(XContentFilterBuilder filterBuilder)
          Adds a filter to the list of filters to "or".
 OrFilterBuilder cache(boolean cache)
          Should the filter be cached or not.
protected  void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 OrFilterBuilder filterName(java.lang.String filterName)
           
 
Methods inherited from class org.elasticsearch.index.query.xcontent.BaseFilterBuilder
toXContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrFilterBuilder

public OrFilterBuilder(XContentFilterBuilder... filters)
Method Detail

add

public OrFilterBuilder add(XContentFilterBuilder filterBuilder)
Adds a filter to the list of filters to "or".


cache

public OrFilterBuilder cache(boolean cache)
Should the filter be cached or not. Defaults to false.


filterName

public OrFilterBuilder filterName(java.lang.String filterName)

doXContent

protected void doXContent(XContentBuilder builder,
                          ToXContent.Params params)
                   throws java.io.IOException
Specified by:
doXContent in class BaseFilterBuilder
Throws:
java.io.IOException