Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    Class GeoPolygonQuery

    Performs a random bounding polygon query to select documents within that polygon area.

    Inheritance
    object
    SearchQueryBase
    GeoPolygonQuery
    Implements
    ISearchQuery
    Inherited Members
    SearchQueryBase.IndexName
    SearchQueryBase.Query
    SearchQueryBase.Boost(double)
    SearchQueryBase.BoostValue
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Couchbase.Search.Queries.Geo
    Assembly: Couchbase.NetClient.dll
    Syntax
    public class GeoPolygonQuery : SearchQueryBase, ISearchQuery
    Remarks

    This class is Uncommitted and may change in future versions.

    Constructors

    | Edit this page View Source

    GeoPolygonQuery(List<Coordinate>)

    Creates a GeoPolygonQuery given a list of Coordinate.

    Declaration
    public GeoPolygonQuery(List<Coordinate> coordinates)
    Parameters
    Type Name Description
    List<Coordinate> coordinates

    Methods

    | Edit this page View Source

    AsReadOnly()

    Declaration
    public GeoPolygonQuery.ReadOnly AsReadOnly()
    Returns
    Type Description
    GeoPolygonQuery.ReadOnly
    | Edit this page View Source

    Deconstruct(out IReadOnlyList<Coordinate>, out string)

    Declaration
    public void Deconstruct(out IReadOnlyList<Coordinate> coordinates, out string field)
    Parameters
    Type Name Description
    IReadOnlyList<Coordinate> coordinates
    string field
    | Edit this page View Source

    Export()

    Exports the GeoPolygonQuery as a JSON object.

    Declaration
    public override JObject Export()
    Returns
    Type Description
    JObject
    Overrides
    SearchQueryBase.Export()
    | Edit this page View Source

    Field(string)

    The optional field to search.

    Declaration
    public GeoPolygonQuery Field(string field)
    Parameters
    Type Name Description
    string field
    Returns
    Type Description
    GeoPolygonQuery

    Implements

    ISearchQuery
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.