java.lang.Object
org.elasticsearch.index.query.AbstractQueryBuilder<GeoPolygonQueryBuilder>
org.elasticsearch.index.query.GeoPolygonQueryBuilder
- All Implemented Interfaces:
NamedWriteable
,VersionedNamedWriteable
,Writeable
,QueryBuilder
,Rewriteable<QueryBuilder>
,ToXContent
,ToXContentObject
@Deprecated
public class GeoPolygonQueryBuilder
extends AbstractQueryBuilder<GeoPolygonQueryBuilder>
Deprecated.
Deprecated geo query. Deprecated in #64227, 7.12/8.0. We do not plan to remove this so we
do not break any users using this.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
Deprecated.The default value for ignore_unmapped.static final String
Deprecated.static final String
Deprecated.Fields inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryName
Fields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDS
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsConstructorDescriptionGeoPolygonQueryBuilder
(String fieldName, List<GeoPoint> points) Deprecated.Deprecated.Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doEquals
(GeoPolygonQueryBuilder other) Deprecated.Indicates whether some otherQueryBuilder
object of the same type is "equal to" this one.protected int
Deprecated.protected org.apache.lucene.search.Query
doToQuery
(SearchExecutionContext context) Deprecated.protected void
doWriteTo
(StreamOutput out) Deprecated.protected void
doXContent
(XContentBuilder builder, ToXContent.Params params) Deprecated.Deprecated.static GeoPolygonQueryBuilder
fromXContent
(XContentParser parser) Deprecated.Deprecated.The minimal version of the recipient this object can be sent toDeprecated.Returns the name of the writeable objectignoreUnmapped
(boolean ignoreUnmapped) Deprecated.Sets whether the query builder should ignore unmapped fields (and run aMatchNoDocsQuery
in place of this query) or throw an exception if the field is unmapped.points()
Deprecated.Deprecated.Sets the validation method to use for geo coordinates.Methods inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
addValidationError, boost, boost, boostAndQueryNameToXContent, checkNegativeBoost, declareStandardFields, doCoordinatorRewrite, doIndexMetadataRewrite, doInnerHitsRewrite, doRewrite, doSearchRewrite, equals, extractInnerHitBuilders, getMaxNestedDepth, getName, hashCode, parseInnerQueryBuilder, parseTopLevelQuery, parseTopLevelQuery, printBoostAndQueryName, queryName, queryName, readQueries, requireValue, rewrite, setMaxNestedDepth, throwParsingExceptionOnMultipleFields, toQuery, toString, toXContent, writeQueries, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
Deprecated.- See Also:
-
GEO_POLYGON_DEPRECATION_MSG
Deprecated.- See Also:
-
DEFAULT_IGNORE_UNMAPPED
public static final boolean DEFAULT_IGNORE_UNMAPPEDDeprecated.The default value for ignore_unmapped.- See Also:
-
-
Constructor Details
-
GeoPolygonQueryBuilder
Deprecated. -
GeoPolygonQueryBuilder
Deprecated.Read from a stream.- Throws:
IOException
-
-
Method Details
-
doWriteTo
Deprecated.- Specified by:
doWriteTo
in classAbstractQueryBuilder<GeoPolygonQueryBuilder>
- Throws:
IOException
-
fieldName
Deprecated. -
points
Deprecated. -
setValidationMethod
Deprecated.Sets the validation method to use for geo coordinates. -
ignoreUnmapped
Deprecated.Sets whether the query builder should ignore unmapped fields (and run aMatchNoDocsQuery
in place of this query) or throw an exception if the field is unmapped. -
doToQuery
protected org.apache.lucene.search.Query doToQuery(SearchExecutionContext context) throws IOException Deprecated.- Specified by:
doToQuery
in classAbstractQueryBuilder<GeoPolygonQueryBuilder>
- Throws:
IOException
-
doXContent
Deprecated.- Specified by:
doXContent
in classAbstractQueryBuilder<GeoPolygonQueryBuilder>
- Throws:
IOException
-
fromXContent
Deprecated.- Throws:
IOException
-
doEquals
Deprecated.Description copied from class:AbstractQueryBuilder
Indicates whether some otherQueryBuilder
object of the same type is "equal to" this one.- Specified by:
doEquals
in classAbstractQueryBuilder<GeoPolygonQueryBuilder>
-
doHashCode
protected int doHashCode()Deprecated.- Specified by:
doHashCode
in classAbstractQueryBuilder<GeoPolygonQueryBuilder>
-
getWriteableName
Deprecated.Description copied from interface:VersionedNamedWriteable
Returns the name of the writeable object -
getMinimalSupportedVersion
Deprecated.Description copied from interface:VersionedNamedWriteable
The minimal version of the recipient this object can be sent to
-
GeoShapeQueryBuilder