Class GeoPolygonQuery
Performs a random bounding polygon query to select documents within that polygon area.
Inheritance
GeoPolygonQuery
Assembly: Couchbase.NetClient.dll
Syntax
public class GeoPolygonQuery : SearchQueryBase, ISearchQuery
Constructors
View Source
GeoPolygonQuery(List<Coordinate>)
Creates a GeoPolygonQuery given a list of Coordinate.
Declaration
public GeoPolygonQuery(List<Coordinate> coordinates)
Parameters
Methods
View Source
AsReadOnly()
Declaration
public GeoPolygonQuery.ReadOnly AsReadOnly()
Returns
View Source
Deconstruct(out IReadOnlyList<Coordinate>, out string)
Declaration
public void Deconstruct(out IReadOnlyList<Coordinate> coordinates, out string field)
Parameters
View Source
Export()
Exports the GeoPolygonQuery as a JSON object.
Declaration
[RequiresUnreferencedCode("Couchbase FTS might require types that cannot be statically analyzed. Make sure all required types are preserved.")]
[RequiresDynamicCode("Couchbase FTS might require types that cannot be statically analyzed and might need runtime code generation. Do not use for native AOT applications.")]
public override JObject Export()
Returns
Overrides
View Source
Field(string)
The optional field to search.
Declaration
public GeoPolygonQuery Field(string field)
Parameters
| Type |
Name |
Description |
| string |
field |
|
Returns
Implements