Skip to content

Commit af936de

Browse files
Remove similarity from Date property integration tests (#4877) (#4878)
This commit removes the Similarity property usage from the Date and DateNanos property integration tests. Similarity is not a valid property and should be removed as part of #3145 Co-authored-by: Russ Cam <[email protected]>
1 parent d613446 commit af936de

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

tests/Tests/Mapping/Types/Core/Date/DateAttributeTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public class DateTest
1111
{
1212
[Date(
1313
DocValues = true,
14-
Similarity = "classic",
1514
Store = true,
1615
Index = false,
1716
Boost = 1.2,
@@ -37,7 +36,6 @@ public class DateAttributeTests : AttributeTestsBase<DateTest>
3736
{
3837
type = "date",
3938
doc_values = true,
40-
similarity = "classic",
4139
store = true,
4240
index = false,
4341
boost = 1.2,

tests/Tests/Mapping/Types/Core/Date/DatePropertyTests.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33
// See the LICENSE file in the project root for more information
44

5-
using System;
5+
using System;
66
using Nest;
77
using Tests.Core.ManagedElasticsearch.Clusters;
88
using Tests.Domain;
@@ -22,7 +22,6 @@ public DatePropertyTests(WritableCluster cluster, EndpointUsage usage) : base(cl
2222
{
2323
type = "date",
2424
doc_values = false,
25-
similarity = "BM25",
2625
store = true,
2726
index = false,
2827
boost = 1.2,
@@ -37,7 +36,6 @@ public DatePropertyTests(WritableCluster cluster, EndpointUsage usage) : base(cl
3736
.Date(b => b
3837
.Name(p => p.LastActivity)
3938
.DocValues(false)
40-
.Similarity("BM25")
4139
.Store()
4240
.Index(false)
4341
.Boost(1.2)
@@ -52,7 +50,6 @@ public DatePropertyTests(WritableCluster cluster, EndpointUsage usage) : base(cl
5250
"lastActivity", new DateProperty
5351
{
5452
DocValues = false,
55-
Similarity = "BM25",
5653
Store = true,
5754
Index = false,
5855
Boost = 1.2,

tests/Tests/Mapping/Types/Core/DateNanos/DateNanosAttributeTests.cs

-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public class DateNanosTest
1111
{
1212
[DateNanos(
1313
DocValues = true,
14-
Similarity = "classic",
1514
Store = true,
1615
Index = false,
1716
Boost = 1.2,
@@ -33,7 +32,6 @@ public class DateNanosAttributeTests : AttributeTestsBase<DateNanosTest>
3332
{
3433
type = "date_nanos",
3534
doc_values = true,
36-
similarity = "classic",
3735
store = true,
3836
index = false,
3937
boost = 1.2,

tests/Tests/Mapping/Types/Core/DateNanos/DateNanosPropertyTests.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33
// See the LICENSE file in the project root for more information
44

5-
using System;
5+
using System;
66
using Nest;
77
using Tests.Core.ManagedElasticsearch.Clusters;
88
using Tests.Domain;
@@ -22,7 +22,6 @@ public DateNanosPropertyTests(WritableCluster cluster, EndpointUsage usage) : ba
2222
{
2323
type = "date_nanos",
2424
doc_values = false,
25-
similarity = "BM25",
2625
store = true,
2726
index = false,
2827
boost = 1.2,
@@ -37,7 +36,6 @@ public DateNanosPropertyTests(WritableCluster cluster, EndpointUsage usage) : ba
3736
.DateNanos(b => b
3837
.Name(p => p.LastActivity)
3938
.DocValues(false)
40-
.Similarity("BM25")
4139
.Store()
4240
.Index(false)
4341
.Boost(1.2)
@@ -52,7 +50,6 @@ public DateNanosPropertyTests(WritableCluster cluster, EndpointUsage usage) : ba
5250
"lastActivity", new DateNanosProperty
5351
{
5452
DocValues = false,
55-
Similarity = "BM25",
5653
Store = true,
5754
Index = false,
5855
Boost = 1.2,

0 commit comments

Comments
 (0)