Skip to content

Commit 1a2c944

Browse files
committed
fix failing FieldStats tests now that min/max_value can return an object too
1 parent 4bd3991 commit 1a2c944

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Nest/Search/FieldStats/FieldStatsResponse.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,17 @@ public class FieldStatsField
5252

5353
[JsonProperty("min_value")]
5454
//TODO this can also be an object in the case of geo_point/shape
55-
public string MinValue { get; internal set; }
55+
public object MinValue { get; internal set; }
56+
57+
[JsonProperty("min_value_as_string")]
58+
public string MinValueAsString { get; internal set; }
5659

5760
[JsonProperty("max_value")]
5861
//TODO this can also be an object in the case of geo_point/shape
59-
public string MaxValue { get; internal set; }
62+
public object MaxValue { get; internal set; }
63+
64+
[JsonProperty("max_value_as_string")]
65+
public string MaxValueAsString { get; internal set; }
66+
6067
}
6168
}

0 commit comments

Comments
 (0)