public class HasParentFilterBuilder extends BaseFilterBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
HasParentFilterBuilder(String parentType,
FilterBuilder parentFilter) |
HasParentFilterBuilder(String parentType,
QueryBuilder parentQuery) |
Modifier and Type | Method and Description |
---|---|
HasParentFilterBuilder |
cache(boolean cache)
This is a noop since has_parent can't be cached.
|
HasParentFilterBuilder |
cacheKey(String cacheKey)
This is a noop since has_parent can't be cached.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
HasParentFilterBuilder |
filterName(String filterName)
Sets the filter name for the filter that can be used when searching for matched_filters per hit.
|
HasParentFilterBuilder |
innerHit(QueryInnerHitBuilder innerHit)
Sets inner hit definition in the scope of this filter and reusing the defined type and query.
|
buildAsBytes, buildAsBytes, toString, toXContent
public HasParentFilterBuilder(String parentType, QueryBuilder parentQuery)
parentType
- The parent typeparentQuery
- The query that will be matched with parent documentspublic HasParentFilterBuilder(String parentType, FilterBuilder parentFilter)
parentType
- The parent typeparentFilter
- The filter that will be matched with parent documentspublic HasParentFilterBuilder filterName(String filterName)
public HasParentFilterBuilder cache(boolean cache)
public HasParentFilterBuilder cacheKey(String cacheKey)
public HasParentFilterBuilder innerHit(QueryInnerHitBuilder innerHit)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class BaseFilterBuilder
IOException
Copyright © 2009–2015. All rights reserved.