File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public interface ISearchResponse<T> : IResponse where T : class
13
13
IDictionary < string , IAggregation > Aggregations { get ; }
14
14
AggregationsHelper Aggs { get ; }
15
15
IDictionary < string , Suggest [ ] > Suggest { get ; }
16
- int ElapsedMilliseconds { get ; }
16
+ int Took { get ; }
17
17
bool TimedOut { get ; }
18
18
bool TerminatedEarly { get ; }
19
19
string ScrollId { get ; }
@@ -40,7 +40,7 @@ public interface ISearchResponse<T> : IResponse where T : class
40
40
[ JsonObject ]
41
41
public class SearchResponse < T > : BaseResponse , ISearchResponse < T > where T : class
42
42
{
43
- internal ServerError MultiSearchError { get ; set ; }
43
+ internal ServerError MultiSearchError { get ; set ; }
44
44
public override IApiCallDetails ApiCall => MultiSearchError != null ? new ApiCallDetailsOverride ( base . ApiCall , MultiSearchError ) : base . ApiCall ;
45
45
46
46
[ JsonProperty ( PropertyName = "_shards" ) ]
@@ -64,7 +64,7 @@ public AggregationsHelper Aggs
64
64
public IDictionary < string , Suggest [ ] > Suggest { get ; internal set ; }
65
65
66
66
[ JsonProperty ( PropertyName = "took" ) ]
67
- public int ElapsedMilliseconds { get ; internal set ; }
67
+ public int Took { get ; internal set ; }
68
68
69
69
[ JsonProperty ( "timed_out" ) ]
70
70
public bool TimedOut { get ; internal set ; }
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ protected override void ExpectResponse(ISearchResponse<Project> response)
64
64
response . Hits . First ( ) . Should ( ) . NotBeNull ( ) ;
65
65
response . Hits . First ( ) . Source . Should ( ) . NotBeNull ( ) ;
66
66
response . Aggregations . Count . Should ( ) . BeGreaterThan ( 0 ) ;
67
+ response . Took . Should ( ) . BeGreaterThan ( 0 ) ;
67
68
var startDates = response . Aggs . Terms ( "startDates" ) ;
68
69
startDates . Should ( ) . NotBeNull ( ) ;
69
70
}
You can’t perform that action at this time.
0 commit comments