You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Nest/Document/Multiple/Bulk/BulkResponse.cs
+25-9Lines changed: 25 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,23 @@
2
2
usingSystem.Linq;
3
3
usingSystem.Text;
4
4
usingNewtonsoft.Json;
5
+
usingSystem;
5
6
6
7
namespaceNest
7
8
{
8
9
publicinterfaceIBulkResponse:IResponse
9
10
{
11
+
/// <summary>
12
+
/// Time in milliseconds for Elasticsearch to execute the search
13
+
/// </summary>
14
+
[Obsolete(@"returned value may be larger than int. In this case, value will be int.MaxValue and TookAsLong field can be checked. Took is long in 5.0.0")]
10
15
intTook{get;}
16
+
17
+
/// <summary>
18
+
/// Time in milliseconds for Elasticsearch to execute the search
/// Time in milliseconds for Elasticsearch to execute the search
41
+
/// </summary>
28
42
[JsonProperty("took")]
29
-
publicintTook{get;internalset;}
43
+
publiclongTookAsLong{get;internalset;}
44
+
45
+
/// <summary>
46
+
/// Time in milliseconds for Elasticsearch to execute the search
47
+
/// </summary>
48
+
[Obsolete(@"returned value may be larger than int. In this case, value will be int.MaxValue and TookAsLong field can be checked. Took is long in 5.0.0")]
Copy file name to clipboardExpand all lines: src/Nest/Document/Single/TermVectors/TermVectorsResponse.cs
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
usingSystem.Collections.Generic;
2
2
usingNewtonsoft.Json;
3
+
usingSystem;
3
4
4
5
namespaceNest
5
6
{
@@ -10,7 +11,18 @@ public interface ITermVectorsResponse : IResponse
10
11
stringId{get;}
11
12
longVersion{get;}
12
13
boolFound{get;}
14
+
15
+
/// <summary>
16
+
/// Time in milliseconds for Elasticsearch to execute the search
17
+
/// </summary>
18
+
[Obsolete(@"returned value may be larger than int. In this case, value will be int.MaxValue and TookAsLong field can be checked. Took is long in 5.0.0")]
13
19
intTook{get;}
20
+
21
+
/// <summary>
22
+
/// Time in milliseconds for Elasticsearch to execute the search
23
+
/// </summary>
24
+
longTookAsLong{get;}
25
+
14
26
IDictionary<string,TermVector>TermVectors{get;}
15
27
}
16
28
@@ -32,8 +44,18 @@ public class TermVectorsResponse : ResponseBase, ITermVectorsResponse
32
44
[JsonProperty("found")]
33
45
publicboolFound{get;internalset;}
34
46
35
-
[JsonProperty(PropertyName="took")]
36
-
publicintTook{get;internalset;}
47
+
/// <summary>
48
+
/// Time in milliseconds for Elasticsearch to execute the search
49
+
/// </summary>
50
+
[JsonProperty("took")]
51
+
publiclongTookAsLong{get;internalset;}
52
+
53
+
/// <summary>
54
+
/// Time in milliseconds for Elasticsearch to execute the search
55
+
/// </summary>
56
+
[Obsolete(@"returned value may be larger than int. In this case, value will be int.MaxValue and TookAsLong field can be checked. Took is long in 5.0.0")]
/// Time in milliseconds for Elasticsearch to execute the search
12
+
/// </summary>
13
+
[Obsolete(@"returned value may be larger than int. In this case, value will be int.MaxValue and TookAsLong field can be checked. Took is long in 5.0.0")]
14
+
intTook{get;}
15
+
16
+
/// <summary>
17
+
/// Time in milliseconds for Elasticsearch to execute the search
18
+
/// </summary>
19
+
longTookAsLong{get;}
20
+
10
21
longTotal{get;}
11
22
}
12
23
@@ -17,20 +28,30 @@ public interface IPercolateResponse : IPercolateCountResponse
/// Time in milliseconds for Elasticsearch to execute the search
34
+
/// </summary>
35
+
[JsonProperty("took")]
36
+
publiclongTookAsLong{get;internalset;}
37
+
38
+
/// <summary>
39
+
/// Time in milliseconds for Elasticsearch to execute the search
40
+
/// </summary>
41
+
[Obsolete(@"returned value may be larger than int. In this case, value will be int.MaxValue and TookAsLong field can be checked. Took is long in 5.0.0")]
Copy file name to clipboardExpand all lines: src/Nest/Search/Search/SearchResponse.cs
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,18 @@ public interface ISearchResponse<T> : IResponse where T : class
14
14
ProfileProfile{get;}
15
15
AggregationsHelperAggs{get;}
16
16
IDictionary<string,Suggest[]>Suggest{get;}
17
+
18
+
/// <summary>
19
+
/// Time in milliseconds for Elasticsearch to execute the search
20
+
/// </summary>
21
+
[Obsolete(@"returned value may be larger than int. In this case, value will be int.MaxValue and TookAsLong field can be checked. Took is long in 5.0.0")]
17
22
intTook{get;}
23
+
24
+
/// <summary>
25
+
/// Time in milliseconds for Elasticsearch to execute the search
26
+
/// </summary>
27
+
longTookAsLong{get;}
28
+
18
29
boolTimedOut{get;}
19
30
boolTerminatedEarly{get;}
20
31
stringScrollId{get;}
@@ -64,8 +75,18 @@ public class SearchResponse<T> : ResponseBase, ISearchResponse<T> where T : clas
/// Time in milliseconds for Elasticsearch to execute the search
80
+
/// </summary>
81
+
[JsonProperty("took")]
82
+
publiclongTookAsLong{get;internalset;}
83
+
84
+
/// <summary>
85
+
/// Time in milliseconds for Elasticsearch to execute the search
86
+
/// </summary>
87
+
[Obsolete(@"returned value may be larger than int. In this case, value will be int.MaxValue and TookAsLong field can be checked. Took is long in 5.0.0")]
0 commit comments