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.
  • Constructor Details

    • GeoPolygonQuery

      public GeoPolygonQuery(List<Coordinate> coordinates)
  • Method Details

    • 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 GeoPolygonQuery for chaining purposes.
    • boost

      public GeoPolygonQuery boost(double boost)
      Overrides:
      boost in class SearchQuery
    • toCore

      public com.couchbase.client.core.api.search.CoreSearchQuery toCore()
      Specified by:
      toCore in class SearchQuery