Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class GeoDistanceQuery

This query finds all matches from a given location (point) within the given distance. Both the point and the distance are required.

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

Constructors

View Source

GeoDistanceQuery()

Declaration
public GeoDistanceQuery()

Methods

View Source

AsReadOnly()

Declaration
public GeoDistanceQuery.ReadOnly AsReadOnly()
Returns
Type Description
GeoDistanceQuery.ReadOnly
View Source

Deconstruct(out double?, out double?, out string, out string)

Declaration
public void Deconstruct(out double? longitude, out double? latitude, out string distance, out string field)
Parameters
Type Name Description
double? longitude
double? latitude
string distance
string field
View Source

Distance(string)

Declaration
public GeoDistanceQuery Distance(string distance)
Parameters
Type Name Description
string distance
Returns
Type Description
GeoDistanceQuery
View Source

Export()

Gets a JSON object representing this query instance />

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
Type Description
JObject
Overrides
SearchQueryBase.Export()
View Source

Field(string)

Declaration
public GeoDistanceQuery Field(string field)
Parameters
Type Name Description
string field
Returns
Type Description
GeoDistanceQuery
View Source

Latitude(double)

Declaration
public GeoDistanceQuery Latitude(double latitude)
Parameters
Type Name Description
double latitude
Returns
Type Description
GeoDistanceQuery
View Source

Longitude(double)

Declaration
public GeoDistanceQuery Longitude(double longitude)
Parameters
Type Name Description
double longitude
Returns
Type Description
GeoDistanceQuery

Implements

ISearchQuery
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.