NamedWriteable, Writeable, ToXContent, ToXContentObject, QueryBuilder, Rewriteable<QueryBuilder>public class GeoPolygonQueryBuilder extends AbstractQueryBuilder<GeoPolygonQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static boolean |
DEFAULT_IGNORE_UNMAPPED |
The default value for ignore_unmapped.
|
static java.lang.String |
NAME |
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryNameMAX_REWRITE_ROUNDSEMPTY_PARAMS| Constructor | Description |
|---|---|
GeoPolygonQueryBuilder(java.lang.String fieldName,
java.util.List<GeoPoint> points) |
|
GeoPolygonQueryBuilder(StreamInput in) |
Read from a stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
doEquals(GeoPolygonQueryBuilder 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 GeoPolygonQueryBuilder |
fromXContent(XContentParser parser) |
|
GeoValidationMethod |
getValidationMethod() |
Returns the validation method to use for geo coordinates.
|
java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
boolean |
ignoreUnmapped() |
Gets whether the query builder will ignore unmapped fields (and run a
MatchNoDocsQuery in place of this query) or throw an exception if
the field is unmapped. |
GeoPolygonQueryBuilder |
ignoreUnmapped(boolean ignoreUnmapped) |
Sets whether the query builder should ignore unmapped fields (and run a
MatchNoDocsQuery in place of this query) or throw an exception if
the field is unmapped. |
java.util.List<GeoPoint> |
points() |
|
GeoPolygonQueryBuilder |
setValidationMethod(GeoValidationMethod method) |
Sets the validation method to use for geo coordinates.
|
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, waitisFragmentpublic static final java.lang.String NAME
public static final boolean DEFAULT_IGNORE_UNMAPPED
public GeoPolygonQueryBuilder(java.lang.String fieldName,
java.util.List<GeoPoint> points)
public GeoPolygonQueryBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class AbstractQueryBuilder<GeoPolygonQueryBuilder>java.io.IOExceptionpublic java.lang.String fieldName()
public java.util.List<GeoPoint> points()
public GeoPolygonQueryBuilder setValidationMethod(GeoValidationMethod method)
public GeoValidationMethod getValidationMethod()
public GeoPolygonQueryBuilder ignoreUnmapped(boolean ignoreUnmapped)
MatchNoDocsQuery in place of this query) or throw an exception if
the field is unmapped.public boolean ignoreUnmapped()
MatchNoDocsQuery in place of this query) or throw an exception if
the field is unmapped.protected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery in class AbstractQueryBuilder<GeoPolygonQueryBuilder>java.io.IOExceptionprotected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent in class AbstractQueryBuilder<GeoPolygonQueryBuilder>java.io.IOExceptionpublic static GeoPolygonQueryBuilder fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionprotected boolean doEquals(GeoPolygonQueryBuilder other)
AbstractQueryBuilderQueryBuilder object of the same type is "equal to" this one.doEquals in class AbstractQueryBuilder<GeoPolygonQueryBuilder>protected int doHashCode()
doHashCode in class AbstractQueryBuilder<GeoPolygonQueryBuilder>public java.lang.String getWriteableName()
NamedWriteable