org.elasticsearch.index.query
Class AndFilterBuilder
java.lang.Object
org.elasticsearch.index.query.BaseFilterBuilder
org.elasticsearch.index.query.AndFilterBuilder
- All Implemented Interfaces:
- ToXContent, FilterBuilder
public class AndFilterBuilder
- 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 |
AndFilterBuilder
public AndFilterBuilder(FilterBuilder... filters)
add
public AndFilterBuilder add(FilterBuilder filterBuilder)
- Adds a filter to the list of filters to "and".
cache
public AndFilterBuilder cache(boolean cache)
- Should the filter be cached or not. Defaults to false.
cacheKey
public AndFilterBuilder cacheKey(String cacheKey)
filterName
public AndFilterBuilder filterName(String filterName)
- Sets the filter name for the filter that can be used when searching for matched_filters per hit.
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.