public class IndicesQueryBuilder extends QueryBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
IndicesQueryBuilder(QueryBuilder queryBuilder,
String... indices) |
Modifier and Type | Method and Description |
---|---|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
IndicesQueryBuilder |
noMatchQuery(QueryBuilder noMatchQuery)
Sets the query to use when it executes on an index that does not match the indices provided.
|
IndicesQueryBuilder |
noMatchQuery(String type)
Sets the no match query, can either be all or none.
|
IndicesQueryBuilder |
queryName(String queryName)
Sets the query name for the filter that can be used when searching for matched_filters per hit.
|
toXContent
buildAsBytes, buildAsBytes, toString
public IndicesQueryBuilder(QueryBuilder queryBuilder, String... indices)
public IndicesQueryBuilder noMatchQuery(String type)
public IndicesQueryBuilder noMatchQuery(QueryBuilder noMatchQuery)
public IndicesQueryBuilder queryName(String queryName)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class QueryBuilder
IOException
Copyright © 2009–2016. All rights reserved.