Package org.elasticsearch.index.query
Class GeoPolygonQueryBuilder
java.lang.Object
org.elasticsearch.index.query.AbstractQueryBuilder<GeoPolygonQueryBuilder>
org.elasticsearch.index.query.GeoPolygonQueryBuilder
- All Implemented Interfaces:
NamedWriteable
,Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
,QueryBuilder
,Rewriteable<QueryBuilder>
@Deprecated public class GeoPolygonQueryBuilder extends AbstractQueryBuilder<GeoPolygonQueryBuilder>
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_IGNORE_UNMAPPED
Deprecated.The default value for ignore_unmapped.static java.lang.String
GEO_POLYGON_DEPRECATION_MSG
Deprecated.static java.lang.String
NAME
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.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
Constructors Constructor Description GeoPolygonQueryBuilder(java.lang.String fieldName, java.util.List<GeoPoint> points)
Deprecated.GeoPolygonQueryBuilder(StreamInput in)
Deprecated.Read from a stream. -
Method Summary
Modifier and Type Method Description protected boolean
doEquals(GeoPolygonQueryBuilder other)
Deprecated.Indicates whether some otherQueryBuilder
object of the same type is "equal to" this one.protected int
doHashCode()
Deprecated.protected org.apache.lucene.search.Query
doToQuery(SearchExecutionContext context)
Deprecated.protected void
doWriteTo(StreamOutput out)
Deprecated.protected void
doXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Deprecated.java.lang.String
fieldName()
Deprecated.static GeoPolygonQueryBuilder
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
Deprecated.GeoValidationMethod
getValidationMethod()
Deprecated.Returns the validation method to use for geo coordinates.java.lang.String
getWriteableName()
Deprecated.Returns the name of the writeable objectboolean
ignoreUnmapped()
Deprecated.Gets whether the query builder will ignore unmapped fields (and run aMatchNoDocsQuery
in place of this query) or throw an exception if the field is unmapped.GeoPolygonQueryBuilder
ignoreUnmapped(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.java.util.List<GeoPoint>
points()
Deprecated.GeoPolygonQueryBuilder
setValidationMethod(GeoValidationMethod method)
Deprecated.Sets the validation method to use for geo coordinates.Methods inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
addValidationError, boost, boost, checkNegativeBoost, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, parseInnerQueryBuilder, parseInnerQueryBuilder, printBoostAndQueryName, queryName, queryName, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toQuery, toString, toXContent, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
public static final java.lang.String NAMEDeprecated.- See Also:
- Constant Field Values
-
GEO_POLYGON_DEPRECATION_MSG
public static final java.lang.String GEO_POLYGON_DEPRECATION_MSGDeprecated.- See Also:
- Constant Field Values
-
DEFAULT_IGNORE_UNMAPPED
public static final boolean DEFAULT_IGNORE_UNMAPPEDDeprecated.The default value for ignore_unmapped.- See Also:
- Constant Field Values
-
-
Constructor Details
-
GeoPolygonQueryBuilder
@Deprecated public GeoPolygonQueryBuilder(java.lang.String fieldName, java.util.List<GeoPoint> points)Deprecated. -
GeoPolygonQueryBuilder
Deprecated.Read from a stream.- Throws:
java.io.IOException
-
-
Method Details
-
doWriteTo
Deprecated.- Specified by:
doWriteTo
in classAbstractQueryBuilder<GeoPolygonQueryBuilder>
- Throws:
java.io.IOException
-
fieldName
public java.lang.String fieldName()Deprecated. -
points
Deprecated. -
setValidationMethod
Deprecated.Sets the validation method to use for geo coordinates. -
getValidationMethod
Deprecated.Returns 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. -
ignoreUnmapped
public boolean ignoreUnmapped()Deprecated.Gets whether the query builder will 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 java.io.IOExceptionDeprecated.- Specified by:
doToQuery
in classAbstractQueryBuilder<GeoPolygonQueryBuilder>
- Throws:
java.io.IOException
-
doXContent
protected void doXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOExceptionDeprecated.- Specified by:
doXContent
in classAbstractQueryBuilder<GeoPolygonQueryBuilder>
- Throws:
java.io.IOException
-
fromXContent
public static GeoPolygonQueryBuilder fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOExceptionDeprecated.- Throws:
java.io.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
public java.lang.String getWriteableName()Deprecated.Description copied from interface:NamedWriteable
Returns the name of the writeable object
-
GeoShapeQueryBuilder