Skip to content

Commit 5e4dc9d

Browse files
committed
Make factor and modifier optional
1 parent 529c8d9 commit 5e4dc9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Nest/DSL/Query/FunctionScoreQueryDescriptor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ public class FieldValueFactorDescriptor<T>
197197
internal PropertyPathMarker _Field { get; set; }
198198

199199
[JsonProperty("factor")]
200-
internal double _Factor { get; set; }
200+
internal double? _Factor { get; set; }
201201

202202
[JsonProperty("modifier")]
203203
[JsonConverter(typeof (StringEnumConverter))]
204-
internal FieldValueFactorModifier _Modifier { get; set; }
204+
internal FieldValueFactorModifier? _Modifier { get; set; }
205205

206206
public FieldValueFactorDescriptor<T> Field(Expression<Func<T, object>> field)
207207
{

0 commit comments

Comments
 (0)