public class IndicesQueryBuilder extends AbstractQueryBuilder<IndicesQueryBuilder>
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryName
EMPTY_PARAMS
Constructor and Description |
---|
IndicesQueryBuilder(QueryBuilder innerQuery,
java.lang.String... indices) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doEquals(IndicesQueryBuilder other)
Indicates whether some other
QueryBuilder object of the same type is "equal to" this one. |
int |
doHashCode() |
protected IndicesQueryBuilder |
doReadFrom(StreamInput in) |
protected QueryBuilder<?> |
doRewrite(QueryRewriteContext queryShardContext) |
protected org.apache.lucene.search.Query |
doToQuery(QueryShardContext context) |
protected void |
doWriteTo(StreamOutput out) |
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
java.lang.String[] |
indices() |
QueryBuilder |
innerQuery() |
QueryBuilder |
noMatchQuery() |
IndicesQueryBuilder |
noMatchQuery(QueryBuilder noMatchQuery)
Sets the query to use when it executes on an index that does not match the indices provided.
|
IndicesQueryBuilder |
noMatchQuery(java.lang.String type)
Sets the no match query, can either be all or none.
|
addValidationError, boost, boost, convertToBytesRefIfString, convertToStringIfBytesRef, equals, getName, hashCode, printBoostAndQueryName, queryName, queryName, readFrom, readQueries, rewrite, toFilter, toQueries, toQuery, toXContent, writeQueries, writeTo
buildAsBytes, buildAsBytes, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
rewriteQuery
public static final java.lang.String NAME
public IndicesQueryBuilder(QueryBuilder innerQuery, java.lang.String... indices)
public QueryBuilder innerQuery()
public java.lang.String[] indices()
public IndicesQueryBuilder noMatchQuery(QueryBuilder noMatchQuery)
public IndicesQueryBuilder noMatchQuery(java.lang.String type)
public QueryBuilder noMatchQuery()
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent
in class AbstractQueryBuilder<IndicesQueryBuilder>
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
protected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery
in class AbstractQueryBuilder<IndicesQueryBuilder>
java.io.IOException
protected IndicesQueryBuilder doReadFrom(StreamInput in) throws java.io.IOException
doReadFrom
in class AbstractQueryBuilder<IndicesQueryBuilder>
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class AbstractQueryBuilder<IndicesQueryBuilder>
java.io.IOException
public int doHashCode()
doHashCode
in class AbstractQueryBuilder<IndicesQueryBuilder>
protected boolean doEquals(IndicesQueryBuilder other)
AbstractQueryBuilder
QueryBuilder
object of the same type is "equal to" this one.doEquals
in class AbstractQueryBuilder<IndicesQueryBuilder>
protected QueryBuilder<?> doRewrite(QueryRewriteContext queryShardContext) throws java.io.IOException
doRewrite
in class AbstractQueryBuilder<IndicesQueryBuilder>
java.io.IOException