@@ -21,7 +21,7 @@ public interface IDistanceFeatureQuery : IFieldNameQuery
21
21
// If the field value is a geo_point field, the origin value must be a geopoint.
22
22
/// </summary>
23
23
[ DataMember ( Name = "origin" ) ]
24
- Union < GeoLocation , DateMath > Origin { get ; set ; }
24
+ Union < GeoCoordinate , DateMath > Origin { get ; set ; }
25
25
26
26
/// <summary>
27
27
/// Distance from the origin at which relevance scores receive half of the boost value.
@@ -42,7 +42,7 @@ public class DistanceFeatureQuery : FieldNameQueryBase, IDistanceFeatureQuery
42
42
internal override void InternalWrapInContainer ( IQueryContainer container ) => container . DistanceFeature = this ;
43
43
44
44
/// <inheritdoc />
45
- public Union < GeoLocation , DateMath > Origin { get ; set ; }
45
+ public Union < GeoCoordinate , DateMath > Origin { get ; set ; }
46
46
47
47
/// <inheritdoc />
48
48
public Union < Distance , Time > Pivot { get ; set ; }
@@ -52,7 +52,7 @@ public class DistanceFeatureQueryDescriptor<T>
52
52
: FieldNameQueryDescriptorBase < DistanceFeatureQueryDescriptor < T > , IDistanceFeatureQuery , T >
53
53
, IDistanceFeatureQuery where T : class
54
54
{
55
- Union < GeoLocation , DateMath > IDistanceFeatureQuery . Origin { get ; set ; }
55
+ Union < GeoCoordinate , DateMath > IDistanceFeatureQuery . Origin { get ; set ; }
56
56
57
57
Union < Distance , Time > IDistanceFeatureQuery . Pivot { get ; set ; }
58
58
@@ -63,7 +63,7 @@ public DistanceFeatureQueryDescriptor<T> Origin(DateMath origin) =>
63
63
Assign ( origin , ( a , v ) => a . Origin = v ) ;
64
64
65
65
/// <inheritdoc cref="IDistanceFeatureQuery.Origin" />
66
- public DistanceFeatureQueryDescriptor < T > Origin ( GeoLocation origin ) =>
66
+ public DistanceFeatureQueryDescriptor < T > Origin ( GeoCoordinate origin ) =>
67
67
Assign ( origin , ( a , v ) => a . Origin = v ) ;
68
68
69
69
/// <inheritdoc cref="IDistanceFeatureQuery.Pivot" />
@@ -77,7 +77,7 @@ public DistanceFeatureQueryDescriptor<T> Pivot(Distance pivot) =>
77
77
78
78
internal class DistanceFeatureQueryFormatter : IJsonFormatter < IDistanceFeatureQuery >
79
79
{
80
- private static readonly UnionFormatter < GeoLocation , DateMath > OriginUnionFormatter = new UnionFormatter < GeoLocation , DateMath > ( ) ;
80
+ private static readonly UnionFormatter < GeoCoordinate , DateMath > OriginUnionFormatter = new UnionFormatter < GeoCoordinate , DateMath > ( ) ;
81
81
private static readonly UnionFormatter < Distance , Time > PivotUnionFormatter = new UnionFormatter < Distance , Time > ( ) ;
82
82
83
83
public void Serialize ( ref JsonWriter writer , IDistanceFeatureQuery value , IJsonFormatterResolver formatterResolver )
0 commit comments