@@ -29,48 +29,50 @@ public interface IHit<out T> where T : class
2929 public class Hit < T > : IHit < T >
3030 where T : class
3131 {
32- [ JsonProperty ( PropertyName = "fields" ) ]
32+ [ JsonProperty ( "fields" ) ]
3333 public FieldValues Fields { get ; internal set ; }
3434
35- [ JsonProperty ( PropertyName = "_source" ) ]
35+ [ JsonProperty ( "_source" ) ]
3636 public T Source { get ; internal set ; }
3737
38- [ JsonProperty ( PropertyName = "_index" ) ]
38+ [ JsonProperty ( "_index" ) ]
3939 public string Index { get ; internal set ; }
4040
41- [ JsonProperty ( PropertyName = "inner_hits" ) ]
41+ [ JsonProperty ( "inner_hits" ) ]
4242 [ JsonConverter ( typeof ( VerbatimDictionaryKeysJsonConverter ) ) ]
4343 public IDictionary < string , InnerHitsResult > InnerHits { get ; internal set ; }
4444
45- // TODO make this nullable for 5.0
46- [ JsonProperty ( PropertyName = "_score" ) ]
45+ [ JsonProperty ( "_score" ) ]
4746 public double Score { get ; set ; }
4847
49- [ JsonProperty ( PropertyName = "_type" ) ]
48+ [ JsonProperty ( "_type" ) ]
5049 public string Type { get ; internal set ; }
5150
52- [ JsonProperty ( PropertyName = "_version" ) ]
51+ [ JsonProperty ( "_version" ) ]
5352 public long ? Version { get ; internal set ; }
5453
55- [ JsonProperty ( PropertyName = "_id" ) ]
54+ [ JsonProperty ( "_id" ) ]
5655 public string Id { get ; internal set ; }
5756
58- [ JsonProperty ( PropertyName = "_parent" ) ]
57+ [ JsonProperty ( "_nested" ) ]
58+ public NestedIdentity Nested { get ; internal set ; }
59+
60+ [ JsonProperty ( "_parent" ) ]
5961 public string Parent { get ; internal set ; }
6062
61- [ JsonProperty ( PropertyName = "_routing" ) ]
63+ [ JsonProperty ( "_routing" ) ]
6264 public string Routing { get ; internal set ; }
6365
64- [ JsonProperty ( PropertyName = "_timestamp" ) ]
66+ [ JsonProperty ( "_timestamp" ) ]
6567 public long ? Timestamp { get ; internal set ; }
6668
67- [ JsonProperty ( PropertyName = "_ttl" ) ]
69+ [ JsonProperty ( "_ttl" ) ]
6870 public long ? Ttl { get ; internal set ; }
6971
70- [ JsonProperty ( PropertyName = "sort" ) ]
72+ [ JsonProperty ( "sort" ) ]
7173 public IEnumerable < object > Sorts { get ; internal set ; }
7274
73- [ JsonProperty ( PropertyName = "highlight" ) ]
75+ [ JsonProperty ( "highlight" ) ]
7476 [ JsonConverter ( typeof ( VerbatimDictionaryKeysJsonConverter ) ) ]
7577 internal Dictionary < string , List < string > > _Highlight { get ; set ; }
7678
@@ -92,10 +94,10 @@ public HighlightFieldDictionary Highlights
9294 }
9395 }
9496
95- [ JsonProperty ( PropertyName = "_explanation" ) ]
97+ [ JsonProperty ( "_explanation" ) ]
9698 public Explanation Explanation { get ; internal set ; }
9799
98- [ JsonProperty ( PropertyName = "matched_queries" ) ]
100+ [ JsonProperty ( "matched_queries" ) ]
99101 public IEnumerable < string > MatchedQueries { get ; internal set ; }
100102 }
101103}
0 commit comments