Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 55c6abd

Browse files
committedJul 24, 2023
Use exactly representable float numbers for tests
1 parent c145975 commit 55c6abd

File tree

34 files changed

+1052
-110
lines changed

34 files changed

+1052
-110
lines changed
 

‎src/Elastic.Clients.Elasticsearch.Serverless/packages.lock.json

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

‎tests/Tests.ClusterLauncher/packages.lock.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2931,7 +2931,7 @@
29312931
"elastic.clients.elasticsearch": {
29322932
"type": "Project",
29332933
"dependencies": {
2934-
"Elastic.Transport": "[0.4.12, )"
2934+
"Elastic.Transport": "[0.4.14, )"
29352935
}
29362936
},
29372937
"elastic.clients.elasticsearch.jsonnetserializer": {
@@ -2944,15 +2944,15 @@
29442944
"tests.configuration": {
29452945
"type": "Project",
29462946
"dependencies": {
2947-
"Elastic.Elasticsearch.Managed": "[0.4.1, )"
2947+
"Elastic.Elasticsearch.Managed": "[0.4.3, )"
29482948
}
29492949
},
29502950
"tests.core": {
29512951
"type": "Project",
29522952
"dependencies": {
29532953
"DiffPlex": "[1.4.1, )",
29542954
"Elastic.Clients.Elasticsearch.JsonNetSerializer": "[8.0.0, )",
2955-
"Elastic.Elasticsearch.Xunit": "[0.4.1, )",
2955+
"Elastic.Elasticsearch.Xunit": "[0.4.3, )",
29562956
"FluentAssertions": "[5.10.3, )",
29572957
"JunitXml.TestLogger": "[3.0.110, )",
29582958
"Microsoft.Bcl.HashCode": "[1.1.1, )",
@@ -2969,7 +2969,7 @@
29692969
"dependencies": {
29702970
"Bogus": "[22.1.2, )",
29712971
"Elastic.Clients.Elasticsearch": "[8.0.0, )",
2972-
"Elastic.Elasticsearch.Managed": "[0.4.1, )",
2972+
"Elastic.Elasticsearch.Managed": "[0.4.3, )",
29732973
"Newtonsoft.Json": "[13.0.1, )",
29742974
"Tests.Configuration": "[8.0.0, )"
29752975
}
@@ -3068,45 +3068,45 @@
30683068
},
30693069
"Elastic.Elasticsearch.Ephemeral": {
30703070
"type": "Transitive",
3071-
"resolved": "0.4.1",
3072-
"contentHash": "zsqa3+N1gVMVr7YHMDRFh7dM0NfQDEIHFgVugbd9B4Bc6rApCM++c1MIAIeJoVgY9ohiaTxkjAyaTgwgyIZsrg==",
3071+
"resolved": "0.4.3",
3072+
"contentHash": "fmu7A6bm3sOTGrG+MAINRQ2Op0n6K1OjfNErNMhpTOt5mQ0UjX8zfpiZoM+nB0jA8bX1nt1YR++5YCnYGJFtRg==",
30733073
"dependencies": {
3074-
"Elastic.Elasticsearch.Managed": "0.4.1",
3074+
"Elastic.Elasticsearch.Managed": "0.4.3",
30753075
"SharpZipLib.NETStandard": "1.0.7"
30763076
}
30773077
},
30783078
"Elastic.Elasticsearch.Managed": {
30793079
"type": "Transitive",
3080-
"resolved": "0.4.1",
3081-
"contentHash": "/1vsS1lTGbjiEj+M3M7s4lcVLiWrYZk/pjrQgnANeZb/paAeLbwIlSRhbyCD2sJIavvKef30+zBtbuk7p+yDYA==",
3080+
"resolved": "0.4.3",
3081+
"contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==",
30823082
"dependencies": {
3083-
"Elastic.Stack.ArtifactsApi": "0.4.1",
3083+
"Elastic.Stack.ArtifactsApi": "0.4.3",
30843084
"Proc": "0.6.1",
30853085
"System.Net.Http": "4.3.1"
30863086
}
30873087
},
30883088
"Elastic.Elasticsearch.Xunit": {
30893089
"type": "Transitive",
3090-
"resolved": "0.4.1",
3091-
"contentHash": "yROS79fuUbstKoGAVuhRE/x7EbLzCxCUV4Pcik8fXiqWupzfEAzSez+kxhKE2sRcvMN+UUKiqCwsMrjgY0hbIg==",
3090+
"resolved": "0.4.3",
3091+
"contentHash": "kKn9Fiihel643Rywvl1bH2luQdhuefMh7wVPaLViEj8olU5Ud0bb1nZ8AFhm4PnEbLjw5PZ49Pn5hvyoYnJesQ==",
30923092
"dependencies": {
3093-
"Elastic.Elasticsearch.Ephemeral": "0.4.1",
3093+
"Elastic.Elasticsearch.Ephemeral": "0.4.3",
30943094
"xunit": "2.4.1"
30953095
}
30963096
},
30973097
"Elastic.Stack.ArtifactsApi": {
30983098
"type": "Transitive",
3099-
"resolved": "0.4.1",
3100-
"contentHash": "8za3oTNW5VQAbQCadm9yb3HyB+U76oz/urdx3Sn0CIX4uW139iqVpm4mE+77tCCkbFp1ZVnrmSq/kBwT6Jgcaw==",
3099+
"resolved": "0.4.3",
3100+
"contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==",
31013101
"dependencies": {
31023102
"SemanticVersioning": "0.8.0",
31033103
"System.Text.Json": "4.6.0"
31043104
}
31053105
},
31063106
"Elastic.Transport": {
31073107
"type": "Transitive",
3108-
"resolved": "0.4.12",
3109-
"contentHash": "Z4CWaO8CH23KMOAcUuevAeOHv9PWBBycWQxYXYgltHcKsEOityrxmGO4ytdIppVrGeBc4RaIclnjV8PKiHtWfQ==",
3108+
"resolved": "0.4.14",
3109+
"contentHash": "VjfChM++MnfljqKnCN75h2huIlg7HkUgrc4VyLh8HMyMKPxaK9LrxbUH8xeDm7bIqEd/qSCeujatfwhfYEhD6w==",
31103110
"dependencies": {
31113111
"Microsoft.CSharp": "4.7.0",
31123112
"System.Buffers": "4.5.1",

‎tests/Tests.Configuration/packages.lock.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
},
1717
"Elastic.Elasticsearch.Managed": {
1818
"type": "Direct",
19-
"requested": "[0.4.1, )",
20-
"resolved": "0.4.1",
21-
"contentHash": "/1vsS1lTGbjiEj+M3M7s4lcVLiWrYZk/pjrQgnANeZb/paAeLbwIlSRhbyCD2sJIavvKef30+zBtbuk7p+yDYA==",
19+
"requested": "[0.4.3, )",
20+
"resolved": "0.4.3",
21+
"contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==",
2222
"dependencies": {
23-
"Elastic.Stack.ArtifactsApi": "0.4.1",
23+
"Elastic.Stack.ArtifactsApi": "0.4.3",
2424
"Proc": "0.6.1",
2525
"System.Net.Http": "4.3.1"
2626
}
@@ -36,8 +36,8 @@
3636
},
3737
"Elastic.Stack.ArtifactsApi": {
3838
"type": "Transitive",
39-
"resolved": "0.4.1",
40-
"contentHash": "8za3oTNW5VQAbQCadm9yb3HyB+U76oz/urdx3Sn0CIX4uW139iqVpm4mE+77tCCkbFp1ZVnrmSq/kBwT6Jgcaw==",
39+
"resolved": "0.4.3",
40+
"contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==",
4141
"dependencies": {
4242
"SemanticVersioning": "0.8.0",
4343
"System.Text.Json": "4.6.0"

‎tests/Tests.Core/packages.lock.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
},
2626
"Elastic.Elasticsearch.Xunit": {
2727
"type": "Direct",
28-
"requested": "[0.4.1, )",
29-
"resolved": "0.4.1",
30-
"contentHash": "yROS79fuUbstKoGAVuhRE/x7EbLzCxCUV4Pcik8fXiqWupzfEAzSez+kxhKE2sRcvMN+UUKiqCwsMrjgY0hbIg==",
28+
"requested": "[0.4.3, )",
29+
"resolved": "0.4.3",
30+
"contentHash": "kKn9Fiihel643Rywvl1bH2luQdhuefMh7wVPaLViEj8olU5Ud0bb1nZ8AFhm4PnEbLjw5PZ49Pn5hvyoYnJesQ==",
3131
"dependencies": {
32-
"Elastic.Elasticsearch.Ephemeral": "0.4.1",
32+
"Elastic.Elasticsearch.Ephemeral": "0.4.3",
3333
"xunit": "2.4.1"
3434
}
3535
},
@@ -128,36 +128,36 @@
128128
},
129129
"Elastic.Elasticsearch.Ephemeral": {
130130
"type": "Transitive",
131-
"resolved": "0.4.1",
132-
"contentHash": "zsqa3+N1gVMVr7YHMDRFh7dM0NfQDEIHFgVugbd9B4Bc6rApCM++c1MIAIeJoVgY9ohiaTxkjAyaTgwgyIZsrg==",
131+
"resolved": "0.4.3",
132+
"contentHash": "fmu7A6bm3sOTGrG+MAINRQ2Op0n6K1OjfNErNMhpTOt5mQ0UjX8zfpiZoM+nB0jA8bX1nt1YR++5YCnYGJFtRg==",
133133
"dependencies": {
134-
"Elastic.Elasticsearch.Managed": "0.4.1",
134+
"Elastic.Elasticsearch.Managed": "0.4.3",
135135
"SharpZipLib.NETStandard": "1.0.7"
136136
}
137137
},
138138
"Elastic.Elasticsearch.Managed": {
139139
"type": "Transitive",
140-
"resolved": "0.4.1",
141-
"contentHash": "/1vsS1lTGbjiEj+M3M7s4lcVLiWrYZk/pjrQgnANeZb/paAeLbwIlSRhbyCD2sJIavvKef30+zBtbuk7p+yDYA==",
140+
"resolved": "0.4.3",
141+
"contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==",
142142
"dependencies": {
143-
"Elastic.Stack.ArtifactsApi": "0.4.1",
143+
"Elastic.Stack.ArtifactsApi": "0.4.3",
144144
"Proc": "0.6.1",
145145
"System.Net.Http": "4.3.1"
146146
}
147147
},
148148
"Elastic.Stack.ArtifactsApi": {
149149
"type": "Transitive",
150-
"resolved": "0.4.1",
151-
"contentHash": "8za3oTNW5VQAbQCadm9yb3HyB+U76oz/urdx3Sn0CIX4uW139iqVpm4mE+77tCCkbFp1ZVnrmSq/kBwT6Jgcaw==",
150+
"resolved": "0.4.3",
151+
"contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==",
152152
"dependencies": {
153153
"SemanticVersioning": "0.8.0",
154154
"System.Text.Json": "4.6.0"
155155
}
156156
},
157157
"Elastic.Transport": {
158158
"type": "Transitive",
159-
"resolved": "0.4.12",
160-
"contentHash": "Z4CWaO8CH23KMOAcUuevAeOHv9PWBBycWQxYXYgltHcKsEOityrxmGO4ytdIppVrGeBc4RaIclnjV8PKiHtWfQ==",
159+
"resolved": "0.4.14",
160+
"contentHash": "VjfChM++MnfljqKnCN75h2huIlg7HkUgrc4VyLh8HMyMKPxaK9LrxbUH8xeDm7bIqEd/qSCeujatfwhfYEhD6w==",
161161
"dependencies": {
162162
"Microsoft.CSharp": "4.7.0",
163163
"System.Buffers": "4.5.1",
@@ -689,7 +689,7 @@
689689
"elastic.clients.elasticsearch": {
690690
"type": "Project",
691691
"dependencies": {
692-
"Elastic.Transport": "[0.4.12, )"
692+
"Elastic.Transport": "[0.4.14, )"
693693
}
694694
},
695695
"elastic.clients.elasticsearch.jsonnetserializer": {
@@ -702,15 +702,15 @@
702702
"tests.configuration": {
703703
"type": "Project",
704704
"dependencies": {
705-
"Elastic.Elasticsearch.Managed": "[0.4.1, )"
705+
"Elastic.Elasticsearch.Managed": "[0.4.3, )"
706706
}
707707
},
708708
"tests.domain": {
709709
"type": "Project",
710710
"dependencies": {
711711
"Bogus": "[22.1.2, )",
712712
"Elastic.Clients.Elasticsearch": "[8.0.0, )",
713-
"Elastic.Elasticsearch.Managed": "[0.4.1, )",
713+
"Elastic.Elasticsearch.Managed": "[0.4.3, )",
714714
"Newtonsoft.Json": "[13.0.1, )",
715715
"Tests.Configuration": "[8.0.0, )"
716716
}

‎tests/Tests.Domain/packages.lock.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
},
2323
"Elastic.Elasticsearch.Managed": {
2424
"type": "Direct",
25-
"requested": "[0.4.1, )",
26-
"resolved": "0.4.1",
27-
"contentHash": "/1vsS1lTGbjiEj+M3M7s4lcVLiWrYZk/pjrQgnANeZb/paAeLbwIlSRhbyCD2sJIavvKef30+zBtbuk7p+yDYA==",
25+
"requested": "[0.4.3, )",
26+
"resolved": "0.4.3",
27+
"contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==",
2828
"dependencies": {
29-
"Elastic.Stack.ArtifactsApi": "0.4.1",
29+
"Elastic.Stack.ArtifactsApi": "0.4.3",
3030
"Proc": "0.6.1",
3131
"System.Net.Http": "4.3.1"
3232
}
@@ -48,17 +48,17 @@
4848
},
4949
"Elastic.Stack.ArtifactsApi": {
5050
"type": "Transitive",
51-
"resolved": "0.4.1",
52-
"contentHash": "8za3oTNW5VQAbQCadm9yb3HyB+U76oz/urdx3Sn0CIX4uW139iqVpm4mE+77tCCkbFp1ZVnrmSq/kBwT6Jgcaw==",
51+
"resolved": "0.4.3",
52+
"contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==",
5353
"dependencies": {
5454
"SemanticVersioning": "0.8.0",
5555
"System.Text.Json": "4.6.0"
5656
}
5757
},
5858
"Elastic.Transport": {
5959
"type": "Transitive",
60-
"resolved": "0.4.12",
61-
"contentHash": "Z4CWaO8CH23KMOAcUuevAeOHv9PWBBycWQxYXYgltHcKsEOityrxmGO4ytdIppVrGeBc4RaIclnjV8PKiHtWfQ==",
60+
"resolved": "0.4.14",
61+
"contentHash": "VjfChM++MnfljqKnCN75h2huIlg7HkUgrc4VyLh8HMyMKPxaK9LrxbUH8xeDm7bIqEd/qSCeujatfwhfYEhD6w==",
6262
"dependencies": {
6363
"Microsoft.CSharp": "4.7.0",
6464
"System.Buffers": "4.5.1",
@@ -251,13 +251,13 @@
251251
"elastic.clients.elasticsearch": {
252252
"type": "Project",
253253
"dependencies": {
254-
"Elastic.Transport": "[0.4.12, )"
254+
"Elastic.Transport": "[0.4.14, )"
255255
}
256256
},
257257
"tests.configuration": {
258258
"type": "Project",
259259
"dependencies": {
260-
"Elastic.Elasticsearch.Managed": "[0.4.1, )"
260+
"Elastic.Elasticsearch.Managed": "[0.4.3, )"
261261
}
262262
}
263263
},

‎tests/Tests/QueryDsl/Compound/FunctionScoreQueryUsageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private static FunctionScore GetScriptScoreFunction()
5151
protected override Query QueryInitializer => new FunctionScoreQuery
5252
{
5353
QueryName = "named_query",
54-
Boost = 1.1f,
54+
Boost = 1.25f,
5555
Query = new MatchAllQuery(),
5656
BoostMode = FunctionBoostMode.Multiply,
5757
ScoreMode = FunctionScoreMode.Sum,
@@ -71,7 +71,7 @@ protected override QueryDescriptor<Project> QueryFluent(QueryDescriptor<Project>
7171
queryDescriptor
7272
.FunctionScore(c => c
7373
.QueryName("named_query")
74-
.Boost(1.1f)
74+
.Boost(1.25f)
7575
.Query(qq => qq.MatchAll())
7676
.BoostMode(FunctionBoostMode.Multiply)
7777
.ScoreMode(FunctionScoreMode.Sum)

‎tests/Tests/QueryDsl/Geo/GeoBoundingBoxQueryUsageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public GeoBoundingBoxQueryUsageTests(ReadOnlyCluster i, EndpointUsage usage) : b
1515

1616
protected override Query QueryInitializer => new GeoBoundingBoxQuery
1717
{
18-
Boost = 1.1f,
18+
Boost = 1.25f,
1919
QueryName = "named_query",
2020
Field = Infer.Field<Project>(p => p.LocationPoint),
2121
BoundingBox = new TopLeftBottomRightGeoBounds
@@ -29,7 +29,7 @@ public GeoBoundingBoxQueryUsageTests(ReadOnlyCluster i, EndpointUsage usage) : b
2929

3030
protected override QueryDescriptor<Project> QueryFluent(QueryDescriptor<Project> queryDescriptor) => queryDescriptor
3131
.GeoBoundingBox(g => g
32-
.Boost(1.1f)
32+
.Boost(1.25f)
3333
.QueryName("named_query")
3434
.Field(p => p.LocationPoint)
3535
.BoundingBox(new TopLeftBottomRightGeoBounds

‎tests/Tests/QueryDsl/Geo/GeoDistanceQueryUsageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public GeoDistanceQueryUsageTests(ReadOnlyCluster cluster, EndpointUsage usage)
1717

1818
protected override Query QueryInitializer => new GeoDistanceQuery
1919
{
20-
Boost = 1.1f,
20+
Boost = 1.25f,
2121
QueryName = "named_query",
2222
Field = Infer.Field<Project>(p => p.LocationPoint),
2323
DistanceType = GeoDistanceType.Arc,
@@ -29,7 +29,7 @@ public GeoDistanceQueryUsageTests(ReadOnlyCluster cluster, EndpointUsage usage)
2929
protected override QueryDescriptor<Project> QueryFluent(QueryDescriptor<Project> queryDescriptor) =>
3030
queryDescriptor
3131
.GeoDistance(g => g
32-
.Boost(1.1f)
32+
.Boost(1.25f)
3333
.QueryName("named_query")
3434
.Field(p => p.LocationPoint)
3535
.DistanceType(GeoDistanceType.Arc)

‎tests/Tests/QueryDsl/Geo/GeoPolygonQueryUsageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public GeoPolygonQueryUsageTests(ReadOnlyCluster i, EndpointUsage usage) : base(
1515

1616
protected override Query QueryInitializer => new GeoPolygonQuery
1717
{
18-
Boost = 1.1f,
18+
Boost = 1.25f,
1919
QueryName = "named_query",
2020
ValidationMethod = GeoValidationMethod.Strict,
2121
Polygon = new GeoPolygonPoints
@@ -34,7 +34,7 @@ public GeoPolygonQueryUsageTests(ReadOnlyCluster i, EndpointUsage usage) : base(
3434
protected override QueryDescriptor<Project> QueryFluent(QueryDescriptor<Project> queryDescriptor) => queryDescriptor
3535
.GeoPolygon(c => c
3636
.QueryName("named_query")
37-
.Boost(1.1f)
37+
.Boost(1.25f)
3838
.Field(p => p.LocationPoint)
3939
.ValidationMethod(GeoValidationMethod.Strict)
4040
.Polygon(p => p.Points(new[]

‎tests/Tests/QueryDsl/Specialized/PinnedQueryUsageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected override Query QueryInitializer
2020
var query = PinnedQuery.Ids(new Id[] { 1, 11, 22 });
2121

2222
query.QueryName = "named_query";
23-
query.Boost = 1.1f;
23+
query.Boost = 1.25f;
2424
query.Organic = new MatchAllQuery { QueryName = "organic_query" };
2525

2626
return query;
@@ -35,7 +35,7 @@ protected override QueryDescriptor<Project> QueryFluent(QueryDescriptor<Project>
3535
var query = PinnedQuery.Ids(new Id[] { 1, 11, 22 });
3636

3737
query.QueryName = "named_query";
38-
query.Boost = 1.1f;
38+
query.Boost = 1.25f;
3939
query.Organic = new MatchAllQuery { QueryName = "organic_query" };
4040

4141
return queryDescriptor.Pinned(query);

‎tests/Tests/Serialization/Queries/RangeQuerySerializationTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ public class RangeQuerySerializationTests : SerializerTestBase
1818
private static readonly DateRangeQuery DateRangeQueryWithoutFormat = new(Field)
1919
{
2020
QueryName = QueryName,
21-
Boost = 1.1f,
21+
Boost = 1.25f,
2222
Gte = DateMath.Now.Subtract("1y").RoundTo(DateMathTimeUnit.Month),
2323
Lt = DateMath.Now
2424
};
2525

2626
private static readonly NumberRangeQuery NumberRangeQuery = new(Field)
2727
{
2828
QueryName = QueryName,
29-
Boost = 1.1f,
29+
Boost = 1.25f,
3030
Gte = 100,
3131
Lt = 1000
3232
};
@@ -36,7 +36,7 @@ private static void VerifyQuery(DateRangeQuery dateRangeQuery)
3636
dateRangeQuery.Should().NotBeNull();
3737
dateRangeQuery.QueryName.Should().Be(QueryName);
3838
dateRangeQuery.Field.Should().Be(Field);
39-
dateRangeQuery.Boost.Should().Be(1.1f);
39+
dateRangeQuery.Boost.Should().Be(1.25f);
4040
dateRangeQuery.Gte.ToString().Should().Be("now-1y/M");
4141
dateRangeQuery.Lt.ToString().Should().Be("now");
4242
}
@@ -46,7 +46,7 @@ private static void VerifyQuery(NumberRangeQuery dateRangeQuery)
4646
dateRangeQuery.Should().NotBeNull();
4747
dateRangeQuery.QueryName.Should().Be(QueryName);
4848
dateRangeQuery.Field.Should().Be(Field);
49-
dateRangeQuery.Boost.Should().Be(1.1f);
49+
dateRangeQuery.Boost.Should().Be(1.25f);
5050
dateRangeQuery.Gte.Should().Be(100);
5151
dateRangeQuery.Lt.Should().Be(1000);
5252
}
@@ -132,7 +132,7 @@ public async Task Fluent_DateRangeQuery_QueryContainer_SerializesCorrectly()
132132
.DateRange(d => d
133133
.Field(Field)
134134
.QueryName(QueryName)
135-
.Boost(1.1f)
135+
.Boost(1.25f)
136136
.Gte(DateMath.Now.Subtract("1y").RoundTo(DateMathTimeUnit.Month))
137137
.Lt(DateMath.Now))));
138138

@@ -167,7 +167,7 @@ public async Task Fluent_NumberRangeQuery_QueryContainer_SerializesCorrectly()
167167
.NumberRange(d => d
168168
.Field(Field)
169169
.QueryName(QueryName)
170-
.Boost(1.1f)
170+
.Boost(1.25f)
171171
.Gte(100)
172172
.Lt(1000))));
173173

‎tests/Tests/Serialization/Queries/SearchSerializationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public async Task Search_WithTermsQuery_Serializes_ForObjectInitializer()
3232
{
3333
Field = Infer.Field<Project>(d => d.Description),
3434
Terms = new TermsQueryField(new FieldValue[] { "term1", "term2" }),
35-
Boost = 1.2f
35+
Boost = 1.25f
3636
});
3737

3838
var json = SerializeAndGetJsonString(container);
@@ -45,7 +45,7 @@ public async Task Search_WithTermsQuery_Serializes_ForDescriptor()
4545
{
4646
var container = new QueryDescriptor<Project>(q => q.
4747
Terms(t => t
48-
.Boost(1.2f)
48+
.Boost(1.25f)
4949
.Field(f => f.Description)
5050
.Terms(new TermsQueryField(new FieldValue[] { "term1", "term2" }))));
5151

‎tests/Tests/_VerifySnapshots/FunctionScoreQueryUsageTests.VerifyDescriptorJson.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
query: {
33
function_score: {
4-
boost: 1.1,
4+
boost: 1.25,
55
boost_mode: multiply,
66
functions: [
77
{

‎tests/Tests/_VerifySnapshots/FunctionScoreQueryUsageTests.VerifyInitializerJson.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
query: {
33
function_score: {
4-
boost: 1.1,
4+
boost: 1.25,
55
boost_mode: multiply,
66
functions: [
77
{

‎tests/Tests/_VerifySnapshots/GeoBoundingBoxQueryUsageTests.VerifyDescriptorJson.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
query: {
33
geo_bounding_box: {
4-
boost: 1.1,
4+
boost: 1.25,
55
ignore_unmapped: true,
66
locationPoint: {
77
bottom_right: {

‎tests/Tests/_VerifySnapshots/GeoBoundingBoxQueryUsageTests.VerifyInitializerJson.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
query: {
33
geo_bounding_box: {
4-
boost: 1.1,
4+
boost: 1.25,
55
ignore_unmapped: true,
66
locationPoint: {
77
bottom_right: {

‎tests/Tests/_VerifySnapshots/GeoDistanceQueryUsageTests.VerifyDescriptorJson.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
query: {
33
geo_distance: {
4-
boost: 1.1,
4+
boost: 1.25,
55
distance: 200m,
66
distance_type: arc,
77
locationPoint: {

‎tests/Tests/_VerifySnapshots/GeoDistanceQueryUsageTests.VerifyInitializerJson.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
query: {
33
geo_distance: {
4-
boost: 1.1,
4+
boost: 1.25,
55
distance: 200m,
66
distance_type: arc,
77
locationPoint: {

‎tests/Tests/_VerifySnapshots/GeoPolygonQueryUsageTests.VerifyDescriptorJson.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
query: {
33
geo_polygon: {
4-
boost: 1.1,
4+
boost: 1.25,
55
ignore_unmapped: true,
66
locationPoint: {
77
points: [

‎tests/Tests/_VerifySnapshots/GeoPolygonQueryUsageTests.VerifyInitializerJson.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
query: {
33
geo_polygon: {
4-
boost: 1.1,
4+
boost: 1.25,
55
ignore_unmapped: true,
66
locationPoint: {
77
points: [

‎tests/Tests/_VerifySnapshots/PinnedQueryUsageTests.VerifyDescriptorJson.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
query: {
33
pinned: {
4-
boost: 1.1,
4+
boost: 1.25,
55
ids: [
66
1,
77
11,

‎tests/Tests/_VerifySnapshots/PinnedQueryUsageTests.VerifyInitializerJson.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
query: {
33
pinned: {
4-
boost: 1.1,
4+
boost: 1.25,
55
ids: [
66
1,
77
11,

‎tests/Tests/_VerifySnapshots/PropertiesSerializationTests.CanSerialize_MultipleProperties_WithPropertyNameExpression.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
type: text
55
},
66
name: {
7-
boost: 1.2,
7+
boost: 1.25
88
type: text
99
}
1010
}

‎tests/Tests/_VerifySnapshots/RangeQuerySerializationTests.DateRangeQuery_QueryContainer_SerializesCorrectly.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
range: {
33
my-field: {
4-
boost: 1.1,
4+
boost: 1.25,
55
gte: now-1y/M,
66
lt: now,
77
_name: named_query

‎tests/Tests/_VerifySnapshots/RangeQuerySerializationTests.DateRangeQuery_SerializesCorrectly.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
my-field: {
3-
boost: 1.1,
3+
boost: 1.25,
44
gte: now-1y/M,
55
lt: now,
66
_name: named_query

‎tests/Tests/_VerifySnapshots/RangeQuerySerializationTests.DateRangeQuery_WithFormat_SerializesCorrectly.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
my-field: {
3-
boost: 1.1,
3+
boost: 1.25,
44
format: dd/MM/yyyy||yyyy,
55
gte: now-1y/M,
66
lt: now,

‎tests/Tests/_VerifySnapshots/RangeQuerySerializationTests.Fluent_DateRangeQuery_QueryContainer_SerializesCorrectly.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
range: {
33
my-field: {
4-
boost: 1.1,
4+
boost: 1.25,
55
gte: now-1y/M,
66
lt: now,
77
_name: named_query

‎tests/Tests/_VerifySnapshots/RangeQuerySerializationTests.Fluent_NumberRangeQuery_QueryContainer_SerializesCorrectly.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
range: {
33
my-field: {
4-
boost: 1.1,
4+
boost: 1.25,
55
gte: 100,
66
lt: 1000,
77
_name: named_query

‎tests/Tests/_VerifySnapshots/RangeQuerySerializationTests.NumberRangeQuery_QueryContainer_SerializesCorrectly.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
range: {
33
my-field: {
4-
boost: 1.1,
4+
boost: 1.25,
55
gte: 100,
66
lt: 1000,
77
_name: named_query

‎tests/Tests/_VerifySnapshots/RangeQuerySerializationTests.NumberRangeQuery_SerializesCorrectly.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
my-field: {
3-
boost: 1.1,
3+
boost: 1.25,
44
gte: 100,
55
lt: 1000,
66
_name: named_query

‎tests/Tests/_VerifySnapshots/SearchSerializationTests.Search_WithShapeQuery_Serializes_ForObjectInitializer.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
shape: {
3-
boost: 1.2,
3+
boost: 1.25
44
description: {
55
indexed_shape: {
66
id: deu,

‎tests/Tests/_VerifySnapshots/SearchSerializationTests.Search_WithTermsQuery_Serializes_ForDescriptor.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
terms: {
3-
boost: 1.2,
3+
boost: 1.25,
44
description: [
55
term1,
66
term2

‎tests/Tests/_VerifySnapshots/SearchSerializationTests.Search_WithTermsQuery_Serializes_ForObjectInitializer.verified.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
terms: {
3-
boost: 1.2,
3+
boost: 1.25,
44
description: [
55
term1,
66
term2

‎tests/Tests/packages.lock.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
},
3232
"Elastic.Transport.VirtualizedCluster": {
3333
"type": "Direct",
34-
"requested": "[0.4.12, )",
35-
"resolved": "0.4.12",
36-
"contentHash": "YcOd6tT1sRyb5wWUJXDxEy2xAgju0OO4Ata2fye36H9Y+8WbJslOezpj8hoItxhoQpkq+wKeVq5GeQPlFliVMg==",
34+
"requested": "[0.4.14, )",
35+
"resolved": "0.4.14",
36+
"contentHash": "EZSqu9xzkF3uY5XiOMExiWjeec+dl177hQ/qANrwCeb41A6K4cTwAeqLUVEu1E39n3/FNutPRwUOREwhd1VGLA==",
3737
"dependencies": {
38-
"Elastic.Transport": "0.4.12"
38+
"Elastic.Transport": "0.4.14"
3939
}
4040
},
4141
"FSharp.Core": {
@@ -153,45 +153,45 @@
153153
},
154154
"Elastic.Elasticsearch.Ephemeral": {
155155
"type": "Transitive",
156-
"resolved": "0.4.1",
157-
"contentHash": "zsqa3+N1gVMVr7YHMDRFh7dM0NfQDEIHFgVugbd9B4Bc6rApCM++c1MIAIeJoVgY9ohiaTxkjAyaTgwgyIZsrg==",
156+
"resolved": "0.4.3",
157+
"contentHash": "fmu7A6bm3sOTGrG+MAINRQ2Op0n6K1OjfNErNMhpTOt5mQ0UjX8zfpiZoM+nB0jA8bX1nt1YR++5YCnYGJFtRg==",
158158
"dependencies": {
159-
"Elastic.Elasticsearch.Managed": "0.4.1",
159+
"Elastic.Elasticsearch.Managed": "0.4.3",
160160
"SharpZipLib.NETStandard": "1.0.7"
161161
}
162162
},
163163
"Elastic.Elasticsearch.Managed": {
164164
"type": "Transitive",
165-
"resolved": "0.4.1",
166-
"contentHash": "/1vsS1lTGbjiEj+M3M7s4lcVLiWrYZk/pjrQgnANeZb/paAeLbwIlSRhbyCD2sJIavvKef30+zBtbuk7p+yDYA==",
165+
"resolved": "0.4.3",
166+
"contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==",
167167
"dependencies": {
168-
"Elastic.Stack.ArtifactsApi": "0.4.1",
168+
"Elastic.Stack.ArtifactsApi": "0.4.3",
169169
"Proc": "0.6.1",
170170
"System.Net.Http": "4.3.1"
171171
}
172172
},
173173
"Elastic.Elasticsearch.Xunit": {
174174
"type": "Transitive",
175-
"resolved": "0.4.1",
176-
"contentHash": "yROS79fuUbstKoGAVuhRE/x7EbLzCxCUV4Pcik8fXiqWupzfEAzSez+kxhKE2sRcvMN+UUKiqCwsMrjgY0hbIg==",
175+
"resolved": "0.4.3",
176+
"contentHash": "kKn9Fiihel643Rywvl1bH2luQdhuefMh7wVPaLViEj8olU5Ud0bb1nZ8AFhm4PnEbLjw5PZ49Pn5hvyoYnJesQ==",
177177
"dependencies": {
178-
"Elastic.Elasticsearch.Ephemeral": "0.4.1",
178+
"Elastic.Elasticsearch.Ephemeral": "0.4.3",
179179
"xunit": "2.4.1"
180180
}
181181
},
182182
"Elastic.Stack.ArtifactsApi": {
183183
"type": "Transitive",
184-
"resolved": "0.4.1",
185-
"contentHash": "8za3oTNW5VQAbQCadm9yb3HyB+U76oz/urdx3Sn0CIX4uW139iqVpm4mE+77tCCkbFp1ZVnrmSq/kBwT6Jgcaw==",
184+
"resolved": "0.4.3",
185+
"contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==",
186186
"dependencies": {
187187
"SemanticVersioning": "0.8.0",
188188
"System.Text.Json": "4.6.0"
189189
}
190190
},
191191
"Elastic.Transport": {
192192
"type": "Transitive",
193-
"resolved": "0.4.12",
194-
"contentHash": "Z4CWaO8CH23KMOAcUuevAeOHv9PWBBycWQxYXYgltHcKsEOityrxmGO4ytdIppVrGeBc4RaIclnjV8PKiHtWfQ==",
193+
"resolved": "0.4.14",
194+
"contentHash": "VjfChM++MnfljqKnCN75h2huIlg7HkUgrc4VyLh8HMyMKPxaK9LrxbUH8xeDm7bIqEd/qSCeujatfwhfYEhD6w==",
195195
"dependencies": {
196196
"Microsoft.CSharp": "4.7.0",
197197
"System.Buffers": "4.5.1",
@@ -795,7 +795,7 @@
795795
"elastic.clients.elasticsearch": {
796796
"type": "Project",
797797
"dependencies": {
798-
"Elastic.Transport": "[0.4.12, )"
798+
"Elastic.Transport": "[0.4.14, )"
799799
}
800800
},
801801
"elastic.clients.elasticsearch.jsonnetserializer": {
@@ -814,15 +814,15 @@
814814
"tests.configuration": {
815815
"type": "Project",
816816
"dependencies": {
817-
"Elastic.Elasticsearch.Managed": "[0.4.1, )"
817+
"Elastic.Elasticsearch.Managed": "[0.4.3, )"
818818
}
819819
},
820820
"tests.core": {
821821
"type": "Project",
822822
"dependencies": {
823823
"DiffPlex": "[1.4.1, )",
824824
"Elastic.Clients.Elasticsearch.JsonNetSerializer": "[8.0.0, )",
825-
"Elastic.Elasticsearch.Xunit": "[0.4.1, )",
825+
"Elastic.Elasticsearch.Xunit": "[0.4.3, )",
826826
"FluentAssertions": "[5.10.3, )",
827827
"JunitXml.TestLogger": "[3.0.110, )",
828828
"Microsoft.Bcl.HashCode": "[1.1.1, )",
@@ -839,7 +839,7 @@
839839
"dependencies": {
840840
"Bogus": "[22.1.2, )",
841841
"Elastic.Clients.Elasticsearch": "[8.0.0, )",
842-
"Elastic.Elasticsearch.Managed": "[0.4.1, )",
842+
"Elastic.Elasticsearch.Managed": "[0.4.3, )",
843843
"Newtonsoft.Json": "[13.0.1, )",
844844
"Tests.Configuration": "[8.0.0, )"
845845
}

0 commit comments

Comments
 (0)
Please sign in to comment.