We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27fc39d commit 2a7c390Copy full SHA for 2a7c390
src/Nest/DSL/Query/CustomScoreQueryDescriptor.cs
@@ -8,7 +8,10 @@ namespace Nest
8
{
9
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
10
public class CustomScoreQueryDescriptor<T> : IQuery where T : class
11
- {
+ {
12
+ [JsonProperty(PropertyName = "lang")]
13
+ internal string _Lang { get; set; }
14
+
15
[JsonProperty(PropertyName = "script")]
16
internal string _Script { get; set; }
17
@@ -24,6 +27,12 @@ internal bool IsConditionless
24
27
25
28
return this._Query == null || this._Query.IsConditionless;
26
29
}
30
+ }
31
32
+ public CustomScoreQueryDescriptor<T> Lang(string lang)
33
34
+ this._Lang = lang;
35
+ return this;
36
37
38
public CustomScoreQueryDescriptor<T> Query(Func<QueryDescriptor<T>, BaseQuery> querySelector)
0 commit comments