@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, queryNameEMPTY_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.
|
protected void |
extractInnerHitBuilders(java.util.Map<java.lang.String,InnerHitContextBuilder> innerHits)
Deprecated.
For internal usage only!
Extracts the inner hits from the query tree.
|
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, getName, hashCode, printBoostAndQueryName, queryName, queryName, readQueries, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toFilter, toQueries, toQuery, toXContent, writeQueries, writeTobuildAsBytes, buildAsBytes, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitrewriteQueryisFragmentpublic 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.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class AbstractQueryBuilder<IndicesQueryBuilder>java.io.IOExceptionpublic 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.IOExceptionpublic static java.util.Optional<IndicesQueryBuilder> fromXContent(QueryParseContext parseContext) throws java.io.IOException, ParsingException
java.io.IOExceptionParsingExceptionpublic java.lang.String getWriteableName()
NamedWriteableprotected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery in class AbstractQueryBuilder<IndicesQueryBuilder>java.io.IOExceptionprotected void extractInnerHitBuilders(java.util.Map<java.lang.String,InnerHitContextBuilder> innerHits)
AbstractQueryBuilderextractInnerHitBuilders in class AbstractQueryBuilder<IndicesQueryBuilder>public int doHashCode()
doHashCode in class AbstractQueryBuilder<IndicesQueryBuilder>protected boolean doEquals(IndicesQueryBuilder other)
AbstractQueryBuilderQueryBuilder 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