Class GeoPolygonQuery
- java.lang.Object
-
- com.couchbase.client.java.search.queries.AbstractFtsQuery
-
- com.couchbase.client.java.search.queries.GeoPolygonQuery
-
@Experimental @Public public class GeoPolygonQuery extends AbstractFtsQuery
A FTS query which allows to match on geo polygons.- Author:
- Jyotsna Nayak
-
-
Constructor Summary
Constructors Constructor Description GeoPolygonQuery(List<Coordinate> coordinates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoPolygonQueryboost(double boost)GeoPolygonQueryfield(String field)protected voidinjectParams(JsonObject input)Override to inject query-specific parameters when doing theSearchQuery.export().-
Methods inherited from class com.couchbase.client.java.search.queries.AbstractFtsQuery
injectParamsAndBoost, toString
-
-
-
-
Constructor Detail
-
GeoPolygonQuery
public GeoPolygonQuery(List<Coordinate> coordinates)
-
-
Method Detail
-
field
public GeoPolygonQuery field(String field)
-
boost
public GeoPolygonQuery boost(double boost)
- Overrides:
boostin classAbstractFtsQuery
-
injectParams
protected void injectParams(JsonObject input)
Description copied from class:AbstractFtsQueryOverride to inject query-specific parameters when doing theSearchQuery.export().- Specified by:
injectParamsin classAbstractFtsQuery- Parameters:
input- the preparedJsonObjectthat will represent the query.
-
-