public final class ParentIdQueryBuilder
extends <any>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_IGNORE_UNMAPPED
The default value for ignore_unmapped.
|
static java.lang.String |
NAME |
| 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) |
protected int |
doHashCode() |
protected Query |
doToQuery(QueryShardContext context) |
protected void |
doWriteTo(StreamOutput out) |
protected void |
doXContent(XContentBuilder builder,
Params params) |
static ParentIdQueryBuilder |
fromXContent(XContentParser parser) |
java.lang.String |
getId() |
java.lang.String |
getType() |
java.lang.String |
getWriteableName() |
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. |
public 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
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,
Params params)
throws java.io.IOException
java.io.IOExceptionpublic static ParentIdQueryBuilder fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionprotected Query doToQuery(QueryShardContext context)
throws java.io.IOException
java.io.IOExceptionprotected boolean doEquals(ParentIdQueryBuilder that)
protected int doHashCode()
public java.lang.String getWriteableName()