Skip to content

Commit 602f0d2

Browse files
committed
fix failing initializer tests since it does not automap, eliminated unreachable code in FieldValues
1 parent 0351217 commit 602f0d2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Nest/CommonAbstractions/Fields/FieldValues.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ private K FieldArray<K>(string field)
7575
using (var sr = new StringReader(s))
7676
using (var jr = new JsonTextReader(sr) { DateParseHandling = DateParseHandling.None })
7777
return ForceNoDateInferrence.Deserialize<K>(jr);
78-
79-
return array.Root.ToObject<K>(ForceNoDateInferrence);
8078
}
8179
return array.ToObject<K>();
8280
}

src/Tests/Indices/MappingManagement/PutMapping/PutMappingApiTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ protected override LazyResponses ClientUsage() => Calls(
187187
{
188188
Properties = new Properties<Project>
189189
{
190-
191190
{ p => p.CuratedTags, new ObjectProperty
192191
{
193192
Properties = new Properties<Tag>
@@ -227,6 +226,7 @@ protected override LazyResponses ClientUsage() => Calls(
227226
{ p => p.Name, new StringProperty { Index = FieldIndexOption.NotAnalyzed } },
228227
{ p => p.NumberOfCommits, new NumberProperty(NumberType.Integer) { Index = NonStringIndexOption.NotAnalyzed } },
229228
{ p => p.StartedOn, new DateProperty { Index = NonStringIndexOption.No } },
229+
{ p => p.DateString, new StringProperty { } },
230230
{ p => p.State, new NumberProperty(NumberType.Integer) },
231231
{ p => p.Suggest, new CompletionProperty() },
232232
{ p => p.Tags, new ObjectProperty

0 commit comments

Comments
 (0)