File tree 5 files changed +4
-6
lines changed
src/Elastic.Clients.Elasticsearch.Shared
5 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ public partial class ScrollResponse<TDocument>
21
21
public IReadOnlyCollection < TDocument > Documents => HitsMetadata . Hits . Select ( s => s . Source ) . ToReadOnlyCollection ( ) ;
22
22
23
23
[ JsonIgnore ]
24
- public long Total => HitsMetadata ? . Total ? . Item2 ?? HitsMetadata ? . Total ? . Item1 . Value ?? - 1 ;
24
+ public long Total => HitsMetadata ? . Total ? . Item1 ? . Value ?? HitsMetadata ? . Total ? . Item2 ?? - 1 ;
25
25
}
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ public partial class SearchResponse<TDocument>
21
21
public IReadOnlyCollection < TDocument > Documents => HitsMetadata . Hits . Select ( s => s . Source ) . ToReadOnlyCollection ( ) ;
22
22
23
23
[ JsonIgnore ]
24
- public long Total => HitsMetadata ? . Total ? . Item2 ?? HitsMetadata ? . Total ? . Item1 . Value ?? - 1 ;
24
+ public long Total => HitsMetadata ? . Total ? . Item1 ? . Value ?? HitsMetadata ? . Total ? . Item2 ?? - 1 ;
25
25
}
Original file line number Diff line number Diff line change 7
7
using System . Text . Json ;
8
8
using System . Text . Json . Serialization ;
9
9
10
- using Elastic . Clients . Elasticsearch . Serialization ;
11
-
12
10
#if ELASTICSEARCH_SERVERLESS
13
11
namespace Elastic . Clients . Elasticsearch . Serverless ;
14
12
#else
Original file line number Diff line number Diff line change @@ -30,5 +30,5 @@ public partial class AsyncSearch<TDocument>
30
30
/// The total number of hits returned for this search.
31
31
/// </summary>
32
32
[ JsonIgnore ]
33
- public long Total => HitsMetadata ? . Total ? . Item2 ?? HitsMetadata ? . Total ? . Item1 . Value ?? - 1 ;
33
+ public long Total => HitsMetadata ? . Total ? . Item1 ? . Value ?? HitsMetadata ? . Total ? . Item2 ?? - 1 ;
34
34
}
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ public partial class MultiSearchItem<TDocument>
21
21
public IReadOnlyCollection < TDocument > Documents => HitsMetadata . Hits . Select ( s => s . Source ) . ToReadOnlyCollection ( ) ;
22
22
23
23
[ JsonIgnore ]
24
- public long Total => HitsMetadata ? . Total ? . Item2 ?? HitsMetadata ? . Total ? . Item1 . Value ?? - 1 ;
24
+ public long Total => HitsMetadata ? . Total ? . Item1 ? . Value ?? HitsMetadata ? . Total ? . Item2 ?? - 1 ;
25
25
}
You can’t perform that action at this time.
0 commit comments