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
1313 IDictionary < string , IAggregation > Aggregations { get ; }
1414 AggregationsHelper Aggs { get ; }
1515 IDictionary < string , Suggest [ ] > Suggest { get ; }
16- int ElapsedMilliseconds { get ; }
16+ int Took { get ; }
1717 bool TimedOut { get ; }
1818 bool TerminatedEarly { get ; }
1919 string ScrollId { get ; }
@@ -40,7 +40,7 @@ public interface ISearchResponse<T> : IResponse where T : class
4040 [ JsonObject ]
4141 public class SearchResponse < T > : BaseResponse , ISearchResponse < T > where T : class
4242 {
43- internal ServerError MultiSearchError { get ; set ; }
43+ internal ServerError MultiSearchError { get ; set ; }
4444 public override IApiCallDetails ApiCall => MultiSearchError != null ? new ApiCallDetailsOverride ( base . ApiCall , MultiSearchError ) : base . ApiCall ;
4545
4646 [ JsonProperty ( PropertyName = "_shards" ) ]
@@ -64,7 +64,7 @@ public AggregationsHelper Aggs
6464 public IDictionary < string , Suggest [ ] > Suggest { get ; internal set ; }
6565
6666 [ JsonProperty ( PropertyName = "took" ) ]
67- public int ElapsedMilliseconds { get ; internal set ; }
67+ public int Took { get ; internal set ; }
6868
6969 [ JsonProperty ( "timed_out" ) ]
7070 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)
6464 response . Hits . First ( ) . Should ( ) . NotBeNull ( ) ;
6565 response . Hits . First ( ) . Source . Should ( ) . NotBeNull ( ) ;
6666 response . Aggregations . Count . Should ( ) . BeGreaterThan ( 0 ) ;
67+ response . Took . Should ( ) . BeGreaterThan ( 0 ) ;
6768 var startDates = response . Aggs . Terms ( "startDates" ) ;
6869 startDates . Should ( ) . NotBeNull ( ) ;
6970 }
You can’t perform that action at this time.
0 commit comments