@@ -42,6 +42,10 @@ public partial class ScrollRequest : PlainRequestBase<ScrollRequestParameters>
4242 [ JsonInclude ]
4343 [ JsonPropertyName ( "scroll" ) ]
4444 public Elastic . Clients . Elasticsearch . Duration ? Scroll { get ; set ; }
45+
46+ [ JsonInclude ]
47+ [ JsonPropertyName ( "scroll_id" ) ]
48+ public Elastic . Clients . Elasticsearch . ScrollId ScrollId { get ; set ; }
4549 }
4650
4751 public sealed partial class ScrollRequestDescriptor : RequestDescriptorBase < ScrollRequestDescriptor , ScrollRequestParameters >
@@ -57,12 +61,20 @@ public ScrollRequestDescriptor()
5761 public ScrollRequestDescriptor RestTotalHitsAsInt ( bool ? restTotalHitsAsInt = true ) => Qs ( "rest_total_hits_as_int" , restTotalHitsAsInt ) ;
5862 private Elastic . Clients . Elasticsearch . Duration ? ScrollValue { get ; set ; }
5963
64+ private Elastic . Clients . Elasticsearch . ScrollId ScrollIdValue { get ; set ; }
65+
6066 public ScrollRequestDescriptor Scroll ( Elastic . Clients . Elasticsearch . Duration ? scroll )
6167 {
6268 ScrollValue = scroll ;
6369 return Self ;
6470 }
6571
72+ public ScrollRequestDescriptor ScrollId ( Elastic . Clients . Elasticsearch . ScrollId scrollId )
73+ {
74+ ScrollIdValue = scrollId ;
75+ return Self ;
76+ }
77+
6678 protected override void Serialize ( Utf8JsonWriter writer , JsonSerializerOptions options , IElasticsearchClientSettings settings )
6779 {
6880 writer . WriteStartObject ( ) ;
@@ -72,6 +84,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
7284 JsonSerializer . Serialize ( writer , ScrollValue , options ) ;
7385 }
7486
87+ writer . WritePropertyName ( "scroll_id" ) ;
88+ JsonSerializer . Serialize ( writer , ScrollIdValue , options ) ;
7589 writer . WriteEndObject ( ) ;
7690 }
7791 }
0 commit comments