Skip to content

Commit d21b231

Browse files
committed
Merge pull request #331 from freshmaker74/patch-1
Added Boost method to RangeQueryDescriptor
2 parents 39b21f9 + 6bd9d49 commit d21b231

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)