BoolQueryBuilder
instead.@Deprecated public class FilteredQueryBuilder extends QueryBuilder implements BoostableQueryBuilder<FilteredQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
FilteredQueryBuilder(QueryBuilder queryBuilder,
QueryBuilder filterBuilder)
Deprecated.
A query that applies a filter to the results of another query.
|
Modifier and Type | Method and Description |
---|---|
FilteredQueryBuilder |
boost(float boost)
Deprecated.
Sets the boost for this query.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params)
Deprecated.
|
FilteredQueryBuilder |
queryName(String queryName)
Deprecated.
Sets the query name for the filter that can be used when searching for matched_filters per hit.
|
toXContent
buildAsBytes, buildAsBytes, toString
public FilteredQueryBuilder(@Nullable QueryBuilder queryBuilder, @Nullable QueryBuilder filterBuilder)
queryBuilder
- The query to apply the filter to (Can be null)filterBuilder
- The filter to apply on the query (Can be null)public FilteredQueryBuilder boost(float boost)
boost
in interface BoostableQueryBuilder<FilteredQueryBuilder>
public FilteredQueryBuilder queryName(String queryName)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class QueryBuilder
IOException
Copyright © 2009–2016. All rights reserved.