public class HasChildFilterBuilder extends BaseFilterBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
HasChildFilterBuilder(String type,
FilterBuilder filterBuilder) |
HasChildFilterBuilder(String type,
QueryBuilder queryBuilder) |
Modifier and Type | Method and Description |
---|---|
HasChildFilterBuilder |
cache(boolean cache)
This is a noop since has_child can't be cached.
|
HasChildFilterBuilder |
cacheKey(String cacheKey)
This is a noop since has_child can't be cached.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
HasChildFilterBuilder |
filterName(String filterName)
Sets the filter name for the filter that can be used when searching for matched_filters per hit.
|
HasChildFilterBuilder |
innerHit(QueryInnerHitBuilder innerHit)
Sets inner hit definition in the scope of this filter and reusing the defined type and query.
|
HasChildFilterBuilder |
maxChildren(int maxChildren)
Defines the maximum number of children that are required to match for the parent to be considered a match.
|
HasChildFilterBuilder |
minChildren(int minChildren)
Defines the minimum number of children that are required to match for the parent to be considered a match.
|
HasChildFilterBuilder |
setShortCircuitCutoff(int shortCircuitCutoff)
Configures at what cut off point only to evaluate parent documents that contain the matching parent id terms
instead of evaluating all parent docs.
|
buildAsBytes, buildAsBytes, toString, toXContent
public HasChildFilterBuilder(String type, QueryBuilder queryBuilder)
public HasChildFilterBuilder(String type, FilterBuilder filterBuilder)
public HasChildFilterBuilder filterName(String filterName)
public HasChildFilterBuilder minChildren(int minChildren)
public HasChildFilterBuilder maxChildren(int maxChildren)
public HasChildFilterBuilder cache(boolean cache)
public HasChildFilterBuilder cacheKey(String cacheKey)
public HasChildFilterBuilder setShortCircuitCutoff(int shortCircuitCutoff)
public HasChildFilterBuilder innerHit(QueryInnerHitBuilder innerHit)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class BaseFilterBuilder
IOException
Copyright © 2009–2015. All rights reserved.