Skip to content

Commit

Permalink
Remove use_field_mapping from integration test (#3885)
Browse files Browse the repository at this point in the history
* Remove use_field_mapping from integration test

Relates: elastic/elasticsearch#30831

* Update expected serialized JSON
  • Loading branch information
russcam authored and Mpdreamz committed Jun 27, 2019
1 parent 359e12d commit 10125f7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Tests/Tests/Search/Search/SearchApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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")
);

Expand All @@ -323,7 +319,7 @@ public SearchApiDocValueFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage
Field = "state",
Value = "Stable"
}),
DocValueFields = Infer.Field<Project>(p => p.Name, format: "use_field_mapping")
DocValueFields = Infer.Field<Project>(p => p.Name)
.And<Project>(p => p.LastActivity, format: "weekyear")
};

Expand Down

0 comments on commit 10125f7

Please sign in to comment.