public class IdsQueryBuilder extends QueryBuilder implements BoostableQueryBuilder<IdsQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
IdsQueryBuilder(String... types) |
| Modifier and Type | Method and Description |
|---|---|
IdsQueryBuilder |
addIds(Collection<String> ids)
Adds ids to the filter.
|
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(Collection<String> ids)
Adds ids to the filter.
|
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.
|
toXContentbuildAsBytes, buildAsBytes, toStringpublic IdsQueryBuilder(String... types)
public IdsQueryBuilder addIds(String... ids)
public IdsQueryBuilder addIds(Collection<String> ids)
public IdsQueryBuilder ids(String... ids)
public IdsQueryBuilder ids(Collection<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 QueryBuilderIOExceptionCopyright © 2009–2016. All rights reserved.