public class IdsQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder<IdsQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
IdsQueryBuilder(String... types) |
| Modifier and Type | Method and Description |
|---|---|
IdsQueryBuilder |
addIds(String... ids)
Adds ids to the filter.
|
IdsQueryBuilder |
boost(float boost)
Sets the boost for this query.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
IdsQueryBuilder |
ids(String... ids)
Adds ids to the filter.
|
IdsQueryBuilder |
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 IdsQueryBuilder(String... types)
public IdsQueryBuilder addIds(String... ids)
public IdsQueryBuilder ids(String... ids)
public IdsQueryBuilder boost(float boost)
boost in interface BoostableQueryBuilder<IdsQueryBuilder>public IdsQueryBuilder queryName(String queryName)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent in class BaseQueryBuilderIOExceptionCopyright © 2009–2016. All rights reserved.