1- using System . Collections . Generic ;
2- using Nest . Domain ;
3- using Newtonsoft . Json ;
4- using System . Linq . Expressions ;
5- using System ;
6- using System . Linq ;
7-
8- namespace Nest
9- {
10- [ JsonObject ( MemberSerialization . OptIn ) ]
11- public interface ISearchShardsResponse : IResponse
12- {
13- [ JsonProperty ( "shards" ) ]
14- IEnumerable < IEnumerable < SearchShard > > Shards { get ; }
15-
16- [ JsonProperty ( "nodes" ) ]
17- IDictionary < string , SearchNode > Nodes { get ; }
18- }
19-
20- public class SearchShardsResponse : BaseResponse , ISearchShardsResponse
21- {
22- public IEnumerable < IEnumerable < SearchShard > > Shards { get ; internal set ; }
23- public IDictionary < string , SearchNode > Nodes { get ; internal set ; }
24- }
25-
26-
27- [ JsonObject ( MemberSerialization . OptIn ) ]
28- public class SearchNode
29- {
30- [ JsonProperty ( "name" ) ]
31- public string Name { get ; set ; }
32- [ JsonProperty ( "transport_address" ) ]
33- public string TransportAddress { get ; set ; }
34-
35- }
36-
37- [ JsonObject ( MemberSerialization . OptIn ) ]
38- public class SearchShard
39- {
40- [ JsonProperty ( "name" ) ]
41- public string State { get ; set ; }
42- [ JsonProperty ( "primary" ) ]
43- public bool Primary { get ; set ; }
44- [ JsonProperty ( "node" ) ]
45- public string Node { get ; set ; }
46- [ JsonProperty ( "relocating_node" ) ]
47- public string RelocatingNode { get ; set ; }
48- [ JsonProperty ( "shard" ) ]
49- public int Shard { get ; set ; }
50- [ JsonProperty ( "index" ) ]
51- public string Index { get ; set ; }
52- }
1+ using Nest . Domain ;
2+ using Newtonsoft . Json ;
3+ using System ;
4+ using System . Collections . Generic ;
5+ using System . Linq ;
6+ using System . Linq . Expressions ;
7+
8+ namespace Nest
9+ {
10+ [ JsonObject ( MemberSerialization . OptIn ) ]
11+ public interface ISearchShardsResponse : IResponse
12+ {
13+ [ JsonProperty ( "shards" ) ]
14+ IEnumerable < IEnumerable < SearchShard > > Shards { get ; }
15+
16+ [ JsonProperty ( "nodes" ) ]
17+ IDictionary < string , SearchNode > Nodes { get ; }
18+ }
19+
20+ public class SearchShardsResponse : BaseResponse , ISearchShardsResponse
21+ {
22+ public IEnumerable < IEnumerable < SearchShard > > Shards { get ; internal set ; }
23+
24+ public IDictionary < string , SearchNode > Nodes { get ; internal set ; }
25+ }
26+
27+ [ JsonObject ( MemberSerialization . OptIn ) ]
28+ public class SearchNode
29+ {
30+ [ JsonProperty ( "name" ) ]
31+ public string Name { get ; set ; }
32+
33+ [ JsonProperty ( "transport_address" ) ]
34+ public string TransportAddress { get ; set ; }
35+ }
36+
37+ [ JsonObject ( MemberSerialization . OptIn ) ]
38+ public class SearchShard
39+ {
40+ [ JsonProperty ( "state" ) ]
41+ public string State { get ; set ; }
42+
43+ [ JsonProperty ( "primary" ) ]
44+ public bool Primary { get ; set ; }
45+
46+ [ JsonProperty ( "node" ) ]
47+ public string Node { get ; set ; }
48+
49+ [ JsonProperty ( "relocating_node" ) ]
50+ public string RelocatingNode { get ; set ; }
51+
52+ [ JsonProperty ( "shard" ) ]
53+ public int Shard { get ; set ; }
54+
55+ [ JsonProperty ( "index" ) ]
56+ public string Index { get ; set ; }
57+ }
5358}
0 commit comments