diff --git a/src/Tests/Tests/Search/Search/SearchApiTests.cs b/src/Tests/Tests/Search/Search/SearchApiTests.cs index 5c004c95214..55c8ff58981 100644 --- a/src/Tests/Tests/Search/Search/SearchApiTests.cs +++ b/src/Tests/Tests/Search/Search/SearchApiTests.cs @@ -277,11 +277,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage }, docvalue_fields = new object[] { - new - { - field = "name", - format = "use_field_mapping" - }, + "name", new { field = "lastActivity", @@ -305,7 +301,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage .Term(p => p.State, StateOfBeing.Stable) ) .DocValueFields(fs => fs - .Field(p => p.Name, format: "use_field_mapping") + .Field(p => p.Name) .Field(p => p.LastActivity, format: "weekyear") ); @@ -323,7 +319,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage Field = "state", Value = "Stable" }), - DocValueFields = Infer.Field(p => p.Name, format: "use_field_mapping") + DocValueFields = Infer.Field(p => p.Name) .And(p => p.LastActivity, format: "weekyear") };