@@ -187,13 +187,6 @@ public sealed partial class DeleteByQueryRequestParameters : Elastic.Transport.R
187
187
/// </summary>
188
188
public Elastic . Clients . Elasticsearch . Slices ? Slices { get => Q < Elastic . Clients . Elasticsearch . Slices ? > ( "slices" ) ; set => Q ( "slices" , value ) ; }
189
189
190
- /// <summary>
191
- /// <para>
192
- /// A comma-separated list of <c><field>:<direction></c> pairs.
193
- /// </para>
194
- /// </summary>
195
- public System . Collections . Generic . ICollection < string > ? Sort { get => Q < System . Collections . Generic . ICollection < string > ? > ( "sort" ) ; set => Q ( "sort" , value ) ; }
196
-
197
190
/// <summary>
198
191
/// <para>
199
192
/// The specific <c>tag</c> of the request for logging and statistical purposes.
@@ -601,13 +594,6 @@ internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
601
594
/// </summary>
602
595
public Elastic . Clients . Elasticsearch . Slices ? Slices { get => Q < Elastic . Clients . Elasticsearch . Slices ? > ( "slices" ) ; set => Q ( "slices" , value ) ; }
603
596
604
- /// <summary>
605
- /// <para>
606
- /// A comma-separated list of <c><field>:<direction></c> pairs.
607
- /// </para>
608
- /// </summary>
609
- public System . Collections . Generic . ICollection < string > ? Sort { get => Q < System . Collections . Generic . ICollection < string > ? > ( "sort" ) ; set => Q ( "sort" , value ) ; }
610
-
611
597
/// <summary>
612
598
/// <para>
613
599
/// The specific <c>tag</c> of the request for logging and statistical purposes.
@@ -681,6 +667,13 @@ internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
681
667
/// </para>
682
668
/// </summary>
683
669
public Elastic . Clients . Elasticsearch . SlicedScroll ? Slice { get ; set ; }
670
+
671
+ /// <summary>
672
+ /// <para>
673
+ /// A sort object that specifies the order of deleted documents.
674
+ /// </para>
675
+ /// </summary>
676
+ public System . Collections . Generic . ICollection < Elastic . Clients . Elasticsearch . SortOptions > ? Sort { get ; set ; }
684
677
}
685
678
686
679
/// <summary>
@@ -1142,28 +1135,6 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Slices(Syste
1142
1135
return this ;
1143
1136
}
1144
1137
1145
- /// <summary>
1146
- /// <para>
1147
- /// A comma-separated list of <c><field>:<direction></c> pairs.
1148
- /// </para>
1149
- /// </summary>
1150
- public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor Sort ( System . Collections . Generic . ICollection < string > ? value )
1151
- {
1152
- Instance . Sort = value ;
1153
- return this ;
1154
- }
1155
-
1156
- /// <summary>
1157
- /// <para>
1158
- /// A comma-separated list of <c><field>:<direction></c> pairs.
1159
- /// </para>
1160
- /// </summary>
1161
- public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor Sort ( params string [ ] values )
1162
- {
1163
- Instance . Sort = [ .. values ] ;
1164
- return this ;
1165
- }
1166
-
1167
1138
/// <summary>
1168
1139
/// <para>
1169
1140
/// The specific <c>tag</c> of the request for logging and statistical purposes.
@@ -1329,6 +1300,62 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Slice<T>(Sys
1329
1300
return this ;
1330
1301
}
1331
1302
1303
+ /// <summary>
1304
+ /// <para>
1305
+ /// A sort object that specifies the order of deleted documents.
1306
+ /// </para>
1307
+ /// </summary>
1308
+ public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor Sort ( System . Collections . Generic . ICollection < Elastic . Clients . Elasticsearch . SortOptions > ? value )
1309
+ {
1310
+ Instance . Sort = value ;
1311
+ return this ;
1312
+ }
1313
+
1314
+ /// <summary>
1315
+ /// <para>
1316
+ /// A sort object that specifies the order of deleted documents.
1317
+ /// </para>
1318
+ /// </summary>
1319
+ public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor Sort ( params Elastic . Clients . Elasticsearch . SortOptions [ ] values )
1320
+ {
1321
+ Instance . Sort = [ .. values ] ;
1322
+ return this ;
1323
+ }
1324
+
1325
+ /// <summary>
1326
+ /// <para>
1327
+ /// A sort object that specifies the order of deleted documents.
1328
+ /// </para>
1329
+ /// </summary>
1330
+ public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor Sort ( params System . Action < Elastic . Clients . Elasticsearch . SortOptionsDescriptor > [ ] actions )
1331
+ {
1332
+ var items = new System . Collections . Generic . List < Elastic . Clients . Elasticsearch . SortOptions > ( ) ;
1333
+ foreach ( var action in actions )
1334
+ {
1335
+ items . Add ( Elastic . Clients . Elasticsearch . SortOptionsDescriptor . Build ( action ) ) ;
1336
+ }
1337
+
1338
+ Instance . Sort = items ;
1339
+ return this ;
1340
+ }
1341
+
1342
+ /// <summary>
1343
+ /// <para>
1344
+ /// A sort object that specifies the order of deleted documents.
1345
+ /// </para>
1346
+ /// </summary>
1347
+ public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor Sort < T > ( params System . Action < Elastic . Clients . Elasticsearch . SortOptionsDescriptor < T > > [ ] actions )
1348
+ {
1349
+ var items = new System . Collections . Generic . List < Elastic . Clients . Elasticsearch . SortOptions > ( ) ;
1350
+ foreach ( var action in actions )
1351
+ {
1352
+ items . Add ( Elastic . Clients . Elasticsearch . SortOptionsDescriptor < T > . Build ( action ) ) ;
1353
+ }
1354
+
1355
+ Instance . Sort = items ;
1356
+ return this ;
1357
+ }
1358
+
1332
1359
[ System . Runtime . CompilerServices . MethodImpl ( System . Runtime . CompilerServices . MethodImplOptions . AggressiveInlining ) ]
1333
1360
internal static Elastic . Clients . Elasticsearch . DeleteByQueryRequest Build ( System . Action < Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor > action )
1334
1361
{
@@ -1838,28 +1865,6 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> S
1838
1865
return this ;
1839
1866
}
1840
1867
1841
- /// <summary>
1842
- /// <para>
1843
- /// A comma-separated list of <c><field>:<direction></c> pairs.
1844
- /// </para>
1845
- /// </summary>
1846
- public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor < TDocument > Sort ( System . Collections . Generic . ICollection < string > ? value )
1847
- {
1848
- Instance . Sort = value ;
1849
- return this ;
1850
- }
1851
-
1852
- /// <summary>
1853
- /// <para>
1854
- /// A comma-separated list of <c><field>:<direction></c> pairs.
1855
- /// </para>
1856
- /// </summary>
1857
- public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor < TDocument > Sort ( params string [ ] values )
1858
- {
1859
- Instance . Sort = [ .. values ] ;
1860
- return this ;
1861
- }
1862
-
1863
1868
/// <summary>
1864
1869
/// <para>
1865
1870
/// The specific <c>tag</c> of the request for logging and statistical purposes.
@@ -2003,6 +2008,45 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> S
2003
2008
return this ;
2004
2009
}
2005
2010
2011
+ /// <summary>
2012
+ /// <para>
2013
+ /// A sort object that specifies the order of deleted documents.
2014
+ /// </para>
2015
+ /// </summary>
2016
+ public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor < TDocument > Sort ( System . Collections . Generic . ICollection < Elastic . Clients . Elasticsearch . SortOptions > ? value )
2017
+ {
2018
+ Instance . Sort = value ;
2019
+ return this ;
2020
+ }
2021
+
2022
+ /// <summary>
2023
+ /// <para>
2024
+ /// A sort object that specifies the order of deleted documents.
2025
+ /// </para>
2026
+ /// </summary>
2027
+ public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor < TDocument > Sort ( params Elastic . Clients . Elasticsearch . SortOptions [ ] values )
2028
+ {
2029
+ Instance . Sort = [ .. values ] ;
2030
+ return this ;
2031
+ }
2032
+
2033
+ /// <summary>
2034
+ /// <para>
2035
+ /// A sort object that specifies the order of deleted documents.
2036
+ /// </para>
2037
+ /// </summary>
2038
+ public Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor < TDocument > Sort ( params System . Action < Elastic . Clients . Elasticsearch . SortOptionsDescriptor < TDocument > > [ ] actions )
2039
+ {
2040
+ var items = new System . Collections . Generic . List < Elastic . Clients . Elasticsearch . SortOptions > ( ) ;
2041
+ foreach ( var action in actions )
2042
+ {
2043
+ items . Add ( Elastic . Clients . Elasticsearch . SortOptionsDescriptor < TDocument > . Build ( action ) ) ;
2044
+ }
2045
+
2046
+ Instance . Sort = items ;
2047
+ return this ;
2048
+ }
2049
+
2006
2050
[ System . Runtime . CompilerServices . MethodImpl ( System . Runtime . CompilerServices . MethodImplOptions . AggressiveInlining ) ]
2007
2051
internal static Elastic . Clients . Elasticsearch . DeleteByQueryRequest Build ( System . Action < Elastic . Clients . Elasticsearch . DeleteByQueryRequestDescriptor < TDocument > > action )
2008
2052
{
0 commit comments