File tree Expand file tree Collapse file tree 5 files changed +4
-6
lines changed
src/Elastic.Clients.Elasticsearch.Shared Expand file tree Collapse file tree 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>
2121 public IReadOnlyCollection < TDocument > Documents => HitsMetadata . Hits . Select ( s => s . Source ) . ToReadOnlyCollection ( ) ;
2222
2323 [ 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 ;
2525}
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ public partial class SearchResponse<TDocument>
2121 public IReadOnlyCollection < TDocument > Documents => HitsMetadata . Hits . Select ( s => s . Source ) . ToReadOnlyCollection ( ) ;
2222
2323 [ 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 ;
2525}
Original file line number Diff line number Diff line change 77using System . Text . Json ;
88using System . Text . Json . Serialization ;
99
10- using Elastic . Clients . Elasticsearch . Serialization ;
11-
1210#if ELASTICSEARCH_SERVERLESS
1311namespace Elastic . Clients . Elasticsearch . Serverless ;
1412#else
Original file line number Diff line number Diff line change @@ -30,5 +30,5 @@ public partial class AsyncSearch<TDocument>
3030 /// The total number of hits returned for this search.
3131 /// </summary>
3232 [ 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 ;
3434}
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ public partial class MultiSearchItem<TDocument>
2121 public IReadOnlyCollection < TDocument > Documents => HitsMetadata . Hits . Select ( s => s . Source ) . ToReadOnlyCollection ( ) ;
2222
2323 [ 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 ;
2525}
You can’t perform that action at this time.
0 commit comments