@@ -15,6 +15,9 @@ public interface IGeoShapeLineStringQuery : IGeoShapeQuery
15
15
{
16
16
[ JsonProperty ( "shape" ) ]
17
17
ILineStringGeoShape Shape { get ; set ; }
18
+
19
+ [ JsonProperty ( PropertyName = "boost" ) ]
20
+ double ? Boost { get ; set ; }
18
21
}
19
22
20
23
public class GeoShapeLineStringQuery : PlainQuery , IGeoShapeLineStringQuery
@@ -25,6 +28,9 @@ protected override void WrapInContainer(IQueryContainer container)
25
28
}
26
29
27
30
public string Name { get ; set ; }
31
+
32
+ public double ? Boost { get ; set ; }
33
+
28
34
bool IQuery . IsConditionless { get { return false ; } }
29
35
30
36
PropertyPathMarker IFieldNameQuery . GetFieldName ( )
@@ -50,6 +56,8 @@ public class GeoShapeLineStringQueryDescriptor<T> : IGeoShapeLineStringQuery whe
50
56
51
57
ILineStringGeoShape IGeoShapeLineStringQuery . Shape { get ; set ; }
52
58
59
+ double ? IGeoShapeLineStringQuery . Boost { get ; set ; }
60
+
53
61
bool IQuery . IsConditionless
54
62
{
55
63
get
@@ -64,6 +72,7 @@ void IFieldNameQuery.SetFieldName(string fieldName)
64
72
{
65
73
( ( IGeoShapeQuery ) this ) . Field = fieldName ;
66
74
}
75
+
67
76
PropertyPathMarker IFieldNameQuery . GetFieldName ( )
68
77
{
69
78
return ( ( IGeoShapeQuery ) this ) . Field ;
@@ -74,6 +83,7 @@ public GeoShapeLineStringQueryDescriptor<T> OnField(string field)
74
83
( ( IGeoShapeQuery ) this ) . Field = field ;
75
84
return this ;
76
85
}
86
+
77
87
public GeoShapeLineStringQueryDescriptor < T > OnField ( Expression < Func < T , object > > objectPath )
78
88
{
79
89
( ( IGeoShapeQuery ) this ) . Field = objectPath ;
@@ -85,6 +95,13 @@ public GeoShapeLineStringQueryDescriptor<T> Name(string name)
85
95
Self . Name = name ;
86
96
return this ;
87
97
}
98
+
99
+ public GeoShapeLineStringQueryDescriptor < T > Boost ( double boost )
100
+ {
101
+ Self . Boost = boost ;
102
+ return this ;
103
+ }
104
+
88
105
public GeoShapeLineStringQueryDescriptor < T > Coordinates ( IEnumerable < IEnumerable < double > > coordinates )
89
106
{
90
107
if ( Self . Shape == null )
0 commit comments