Skip to content

Commit 1105a6b

Browse files
committed
Fixing function score unit tests now that weight is effectively a double
1 parent 3b6f11b commit 1105a6b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Tests/Nest.Tests.Unit/Search/Query/Singles/FunctionScoreQueryJson.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void FunctionScoreQueryWithJustWeight()
6464
query : {
6565
function_score : {
6666
query : { match_all : {} },
67-
weight : 2
67+
weight : 2.0
6868
}
6969
}
7070
}";

src/Tests/Nest.Tests.Unit/Search/Sorting/FunctionScoreTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void TestScriptScore()
9494
""term1"":""termValue""
9595
}
9696
},
97-
weight: 5
97+
weight: 5.0
9898
}
9999
]
100100
}
@@ -280,7 +280,7 @@ public void TestDecayFunction()
280280
""term1"": ""termValue""
281281
}
282282
},
283-
""weight"": 5
283+
""weight"": 5.0
284284
}
285285
]
286286
}

0 commit comments

Comments
 (0)