NamedWriteable, Writeable, ToXContent, ToXContentObject, QueryBuilder, Rewriteable<QueryBuilder>public class ExistsQueryBuilder extends AbstractQueryBuilder<ExistsQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static ParseField |
FIELD_FIELD |
|
static java.lang.String |
NAME |
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryNameMAX_REWRITE_ROUNDSEMPTY_PARAMS| Constructor | Description |
|---|---|
ExistsQueryBuilder(java.lang.String fieldName) |
|
ExistsQueryBuilder(StreamInput in) |
Read from a stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
doEquals(ExistsQueryBuilder other) |
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) |
|
java.lang.String |
fieldName() |
|
static ExistsQueryBuilder |
fromXContent(XContentParser parser) |
|
java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
static org.apache.lucene.search.Query |
newFilter(QueryShardContext context,
java.lang.String fieldPattern) |
addValidationError, boost, boost, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, parseInnerQueryBuilder, printBoostAndQueryName, queryName, queryName, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toFilter, toQuery, toString, toXContent, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitrewrite, rewrite, rewrite, rewriteAndFetch, rewriteAndFetchisFragmentpublic static final java.lang.String NAME
public static final ParseField FIELD_FIELD
public ExistsQueryBuilder(java.lang.String fieldName)
public ExistsQueryBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class AbstractQueryBuilder<ExistsQueryBuilder>java.io.IOExceptionpublic java.lang.String fieldName()
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent in class AbstractQueryBuilder<ExistsQueryBuilder>java.io.IOExceptionpublic static ExistsQueryBuilder fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionprotected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery in class AbstractQueryBuilder<ExistsQueryBuilder>java.io.IOExceptionpublic static org.apache.lucene.search.Query newFilter(QueryShardContext context, java.lang.String fieldPattern)
protected int doHashCode()
doHashCode in class AbstractQueryBuilder<ExistsQueryBuilder>protected boolean doEquals(ExistsQueryBuilder other)
AbstractQueryBuilderQueryBuilder object of the same type is "equal to" this one.doEquals in class AbstractQueryBuilder<ExistsQueryBuilder>public java.lang.String getWriteableName()
NamedWriteable