diff --git a/tests/Tests/Search/Search/SearchApiTests.cs b/tests/Tests/Search/Search/SearchApiTests.cs index c105fb700da..ca0670a2f26 100644 --- a/tests/Tests/Search/Search/SearchApiTests.cs +++ b/tests/Tests/Search/Search/SearchApiTests.cs @@ -285,7 +285,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage new { field = "lastActivity", - format = "weekyear" + format = DateFormat.basic_date }, } }; @@ -306,7 +306,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage ) .DocValueFields(fs => fs .Field(p => p.Name) - .Field(p => p.LastActivity, format: "weekyear") + .Field(p => p.LastActivity, format: DateFormat.basic_date) ); protected override SearchRequest Initializer => new SearchRequest() @@ -324,7 +324,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage Value = "Stable" }), DocValueFields = Infer.Field(p => p.Name) - .And(p => p.LastActivity, format: "weekyear") + .And(p => p.LastActivity, format: DateFormat.basic_date) }; protected override void ExpectResponse(ISearchResponse response)