Class GeoQueryContext
java.lang.Object
org.elasticsearch.search.suggest.completion.context.GeoQueryContext
- All Implemented Interfaces:
ToXContent,ToXContentObject
public final class GeoQueryContext extends java.lang.Object implements ToXContentObject
Defines the query context for
GeoContextMapping-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeoQueryContext.BuilderNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME -
Method Summary
Modifier and Type Method Description static GeoQueryContext.Builderbuilder()booleanequals(java.lang.Object o)static GeoQueryContextfromXContent(XContentParser parser)intgetBoost()Returns the query-time boost of the contextGeoPointgetGeoPoint()Returns the geo point of the contextjava.util.List<java.lang.Integer>getNeighbours()Returns the precision levels at which geohash cells neighbours are consideredintgetPrecision()Returns the precision (length) for the geohashinthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
-
Method Details
-
getGeoPoint
Returns the geo point of the context -
getBoost
public int getBoost()Returns the query-time boost of the context -
getPrecision
public int getPrecision()Returns the precision (length) for the geohash -
getNeighbours
public java.util.List<java.lang.Integer> getNeighbours()Returns the precision levels at which geohash cells neighbours are considered -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
builder
-
fromXContent
- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-