Class GeoPolygonQuery
- java.lang.Object
-
- com.couchbase.client.java.search.SearchQuery
-
- com.couchbase.client.java.search.queries.GeoPolygonQuery
-
@SinceCouchbase("6.5.1") public class GeoPolygonQuery extends SearchQuery
A search query which allows to match inside a geo polygon.
-
-
Field Summary
-
Fields inherited from class com.couchbase.client.java.search.SearchQuery
boost
-
-
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)Allows to specify which field the query should apply to (default is null).com.couchbase.client.core.api.search.CoreSearchQuerytoCore()-
Methods inherited from class com.couchbase.client.java.search.SearchQuery
booleanField, booleans, conjuncts, dateRange, disjuncts, docId, export, geoBoundingBox, geoBoundingBox, geoDistance, geoDistance, geoPolygon, match, matchAll, matchNone, matchPhrase, numericRange, phrase, prefix, queryString, regexp, term, termRange, toString, wildcard
-
-
-
-
Constructor Detail
-
GeoPolygonQuery
public GeoPolygonQuery(List<Coordinate> coordinates)
-
-
Method Detail
-
field
public GeoPolygonQuery field(String field)
Allows to specify which field the query should apply to (default is null).- Parameters:
field- the name of the field in the index/document (if null it is not considered).- Returns:
- this
GeoPolygonQueryfor chaining purposes.
-
boost
public GeoPolygonQuery boost(double boost)
- Overrides:
boostin classSearchQuery
-
toCore
public com.couchbase.client.core.api.search.CoreSearchQuery toCore()
- Specified by:
toCorein classSearchQuery
-
-