public class FilteredQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder<FilteredQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
FilteredQueryBuilder(QueryBuilder queryBuilder,
FilterBuilder filterBuilder)
A query that applies a filter to the results of another query.
|
| Modifier and Type | Method and Description |
|---|---|
FilteredQueryBuilder |
boost(float boost)
Sets the boost for this query.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
FilteredQueryBuilder |
queryName(String queryName)
Sets the query name for the filter that can be used when searching for matched_filters per hit.
|
buildAsBytes, buildAsBytes, toString, toXContentpublic FilteredQueryBuilder(@Nullable QueryBuilder queryBuilder, @Nullable FilterBuilder 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 BaseQueryBuilderIOExceptionCopyright © 2009–2016. All rights reserved.