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