|
5 | 5 |
|
6 | 6 | namespace Nest |
7 | 7 | { |
8 | | - public interface ITermVectorResponse : IResponse |
9 | | - { |
10 | | - bool Found { get; } |
11 | | - IDictionary<string, TermVector> TermVectors { get; } |
12 | | - } |
13 | | - |
14 | | - [JsonObject] |
15 | | - public class TermVectorResponse : BaseResponse, ITermVectorResponse |
16 | | - { |
17 | | - public TermVectorResponse() |
18 | | - { |
19 | | - IsValid = true; |
20 | | - TermVectors = new Dictionary<string, TermVector>(); |
21 | | - } |
22 | | - |
23 | | - [JsonProperty("found")] |
24 | | - public bool Found { get; internal set; } |
25 | | - |
26 | | - [JsonProperty("term_vectors")] |
27 | | - public IDictionary<string, TermVector> TermVectors { get; internal set; } |
28 | | - } |
| 8 | + public interface ITermVectorResponse : IResponse |
| 9 | + { |
| 10 | + bool Found { get; } |
| 11 | + IDictionary<string, TermVector> TermVectors { get; } |
| 12 | + } |
| 13 | + |
| 14 | + public interface IMultiTermVectorHit : ITermVectorResponse |
| 15 | + { |
| 16 | + string Index { get; } |
| 17 | + string Type { get; } |
| 18 | + string Id { get; } |
| 19 | + long Version { get; } |
| 20 | + long Took { get; } |
| 21 | + } |
| 22 | + |
| 23 | + [JsonObject] |
| 24 | + public class TermVectorResponse : BaseResponse, ITermVectorResponse |
| 25 | + { |
| 26 | + public TermVectorResponse() |
| 27 | + { |
| 28 | + IsValid = true; |
| 29 | + TermVectors = new Dictionary<string, TermVector>(); |
| 30 | + } |
| 31 | + |
| 32 | + [JsonProperty("found")] |
| 33 | + public bool Found { get; internal set; } |
| 34 | + |
| 35 | + |
| 36 | + [JsonProperty("term_vectors")] |
| 37 | + public IDictionary<string, TermVector> TermVectors { get; internal set; } |
| 38 | + } |
| 39 | + |
| 40 | + public class MultiTermVectorHit : TermVectorResponse, IMultiTermVectorHit |
| 41 | + { |
| 42 | + [JsonProperty("_index")] |
| 43 | + public string Index { get; internal set; } |
| 44 | + |
| 45 | + [JsonProperty("_type")] |
| 46 | + public string Type { get; internal set; } |
| 47 | + |
| 48 | + [JsonProperty("_id")] |
| 49 | + public string Id { get; internal set; } |
| 50 | + |
| 51 | + [JsonProperty("_version")] |
| 52 | + public long Version { get; internal set; } |
| 53 | + |
| 54 | + [JsonProperty("took")] |
| 55 | + public long Took { get; internal set; } |
| 56 | + |
| 57 | + } |
29 | 58 | } |
0 commit comments