From d38c74e6c4d5bf4ae7f05522fe038fec62769be0 Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Thu, 27 Jun 2019 17:25:22 +1000 Subject: [PATCH 1/2] Remove use_field_mapping from integration test Relates: https://github.com/elastic/elasticsearch/pull/30831 --- src/Tests/Tests/Search/Search/SearchApiTests.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Tests/Tests/Search/Search/SearchApiTests.cs b/src/Tests/Tests/Search/Search/SearchApiTests.cs index 5c004c95214..8e2968306bb 100644 --- a/src/Tests/Tests/Search/Search/SearchApiTests.cs +++ b/src/Tests/Tests/Search/Search/SearchApiTests.cs @@ -279,8 +279,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage { new { - field = "name", - format = "use_field_mapping" + field = "name" }, new { @@ -305,7 +304,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 +322,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") }; From 57b88d8f8476de39c90d284990ef1d4b3d716b14 Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Thu, 27 Jun 2019 17:49:21 +1000 Subject: [PATCH 2/2] Update expected serialized JSON --- src/Tests/Tests/Search/Search/SearchApiTests.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Tests/Tests/Search/Search/SearchApiTests.cs b/src/Tests/Tests/Search/Search/SearchApiTests.cs index 8e2968306bb..55c8ff58981 100644 --- a/src/Tests/Tests/Search/Search/SearchApiTests.cs +++ b/src/Tests/Tests/Search/Search/SearchApiTests.cs @@ -277,10 +277,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage }, docvalue_fields = new object[] { - new - { - field = "name" - }, + "name", new { field = "lastActivity",