Skip to content

Commit 6bd9d49

Browse files
committed
Added Boost method to RangeQueryDescriptor
1 parent 39b21f9 commit 6bd9d49

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Nest/DSL/Query/RangeQueryDescriptor.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ public RangeQueryDescriptor<T> FromExclusive()
6262
this._FromInclusive = false;
6363
return this;
6464
}
65+
66+
/// <summary>
67+
/// Boosts the range query by the specified boost factor
68+
/// </summary>
69+
/// <param name="boost">Boost factor</param>
70+
public RangeQueryDescriptor<T> Boost(double boost)
71+
{
72+
this._Boost = boost;
73+
return this;
74+
}
6575

6676

6777
#region int

0 commit comments

Comments
 (0)