org.elasticsearch.index.query
Class OrFilterBuilder
java.lang.Object
org.elasticsearch.index.query.BaseFilterBuilder
org.elasticsearch.index.query.OrFilterBuilder
- All Implemented Interfaces:
- ToXContent, FilterBuilder
public class OrFilterBuilder
- extends BaseFilterBuilder
A filter that matches documents matching boolean combinations of other filters.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrFilterBuilder
public OrFilterBuilder(FilterBuilder... filters)
add
public OrFilterBuilder add(FilterBuilder 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.
cacheKey
public OrFilterBuilder cacheKey(String cacheKey)
filterName
public OrFilterBuilder filterName(String filterName)
doXContent
protected void doXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Specified by:
doXContent
in class BaseFilterBuilder
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.