@@ -15,6 +15,9 @@ public interface IGeoShapeLineStringQuery : IGeoShapeQuery
1515 {
1616 [ JsonProperty ( "shape" ) ]
1717 ILineStringGeoShape Shape { get ; set ; }
18+
19+ [ JsonProperty ( PropertyName = "boost" ) ]
20+ double ? Boost { get ; set ; }
1821 }
1922
2023 public class GeoShapeLineStringQuery : PlainQuery , IGeoShapeLineStringQuery
@@ -25,6 +28,9 @@ protected override void WrapInContainer(IQueryContainer container)
2528 }
2629
2730 public string Name { get ; set ; }
31+
32+ public double ? Boost { get ; set ; }
33+
2834 bool IQuery . IsConditionless { get { return false ; } }
2935
3036 PropertyPathMarker IFieldNameQuery . GetFieldName ( )
@@ -50,6 +56,8 @@ public class GeoShapeLineStringQueryDescriptor<T> : IGeoShapeLineStringQuery whe
5056
5157 ILineStringGeoShape IGeoShapeLineStringQuery . Shape { get ; set ; }
5258
59+ double ? IGeoShapeLineStringQuery . Boost { get ; set ; }
60+
5361 bool IQuery . IsConditionless
5462 {
5563 get
@@ -64,6 +72,7 @@ void IFieldNameQuery.SetFieldName(string fieldName)
6472 {
6573 ( ( IGeoShapeQuery ) this ) . Field = fieldName ;
6674 }
75+
6776 PropertyPathMarker IFieldNameQuery . GetFieldName ( )
6877 {
6978 return ( ( IGeoShapeQuery ) this ) . Field ;
@@ -74,6 +83,7 @@ public GeoShapeLineStringQueryDescriptor<T> OnField(string field)
7483 ( ( IGeoShapeQuery ) this ) . Field = field ;
7584 return this ;
7685 }
86+
7787 public GeoShapeLineStringQueryDescriptor < T > OnField ( Expression < Func < T , object > > objectPath )
7888 {
7989 ( ( IGeoShapeQuery ) this ) . Field = objectPath ;
@@ -85,6 +95,13 @@ public GeoShapeLineStringQueryDescriptor<T> Name(string name)
8595 Self . Name = name ;
8696 return this ;
8797 }
98+
99+ public GeoShapeLineStringQueryDescriptor < T > Boost ( double boost )
100+ {
101+ Self . Boost = boost ;
102+ return this ;
103+ }
104+
88105 public GeoShapeLineStringQueryDescriptor < T > Coordinates ( IEnumerable < IEnumerable < double > > coordinates )
89106 {
90107 if ( Self . Shape == null )
0 commit comments