public final class ParentIdQueryBuilder extends AbstractQueryBuilder<ParentIdQueryBuilder>
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_IGNORE_UNMAPPED
The default value for ignore_unmapped.
|
static java.lang.String |
NAME |
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryNameEMPTY_PARAMS| Constructor and Description |
|---|
ParentIdQueryBuilder(StreamInput in)
Read from a stream.
|
ParentIdQueryBuilder(java.lang.String type,
java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doEquals(ParentIdQueryBuilder that)
Indicates whether some other
QueryBuilder object of the same type is "equal to" this one. |
protected int |
doHashCode() |
protected org.apache.lucene.search.Query |
doToQuery(QueryShardContext context) |
protected void |
doWriteTo(StreamOutput out) |
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
static java.util.Optional<ParentIdQueryBuilder> |
fromXContent(QueryParseContext parseContext) |
java.lang.String |
getId() |
java.lang.String |
getType() |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
boolean |
ignoreUnmapped()
Gets whether the query builder will ignore unmapped types (and run a
MatchNoDocsQuery in place of this query) or throw an exception if
the type is unmapped. |
ParentIdQueryBuilder |
ignoreUnmapped(boolean ignoreUnmapped)
Sets whether the query builder should ignore unmapped types (and run a
MatchNoDocsQuery in place of this query) or throw an exception if
the type is unmapped. |
addValidationError, boost, boost, convertToBytesRefIfString, convertToStringIfBytesRef, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, printBoostAndQueryName, queryName, queryName, readQueries, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toFilter, toQueries, toQuery, toXContent, writeQueries, writeTobuildAsBytes, buildAsBytes, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitrewriteQuerypublic static final java.lang.String NAME
public static final boolean DEFAULT_IGNORE_UNMAPPED
public ParentIdQueryBuilder(java.lang.String type,
java.lang.String id)
public ParentIdQueryBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class AbstractQueryBuilder<ParentIdQueryBuilder>java.io.IOExceptionpublic java.lang.String getType()
public java.lang.String getId()
public ParentIdQueryBuilder ignoreUnmapped(boolean ignoreUnmapped)
MatchNoDocsQuery in place of this query) or throw an exception if
the type is unmapped.public boolean ignoreUnmapped()
MatchNoDocsQuery in place of this query) or throw an exception if
the type is unmapped.protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent in class AbstractQueryBuilder<ParentIdQueryBuilder>java.io.IOExceptionpublic static java.util.Optional<ParentIdQueryBuilder> fromXContent(QueryParseContext parseContext) throws java.io.IOException
java.io.IOExceptionprotected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery in class AbstractQueryBuilder<ParentIdQueryBuilder>java.io.IOExceptionprotected boolean doEquals(ParentIdQueryBuilder that)
AbstractQueryBuilderQueryBuilder object of the same type is "equal to" this one.doEquals in class AbstractQueryBuilder<ParentIdQueryBuilder>protected int doHashCode()
doHashCode in class AbstractQueryBuilder<ParentIdQueryBuilder>public java.lang.String getWriteableName()
NamedWriteable