forked from elastic/elasticsearch-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathElasticLowLevelClient.Generated.cs
4216 lines (4211 loc) · 580 KB
/
ElasticLowLevelClient.Generated.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Elasticsearch.Net;
using static Elasticsearch.Net.HttpMethod;
//This file is automatically generated from https://github.com/elastic/elasticsearch/tree/master/rest-api-spec
namespace Elasticsearch.Net
{
///<summary>
///Raw operations with elasticsearch
///</summary>
public partial class ElasticLowLevelClient : IElasticLowLevelClient
{
///<summary>POST on /_bulk <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html</para></summary>
///<param name="body">The operation definition and data (action-data pairs), separated by newlines</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Bulk<TResponse>(PostData body, BulkRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_bulk"), body, _params(requestParameters));
///<summary>POST on /_bulk <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html</para></summary>
///<param name="body">The operation definition and data (action-data pairs), separated by newlines</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> BulkAsync<TResponse>(PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_bulk"), ctx, body, _params(requestParameters));
///<summary>POST on /{index}/_bulk <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html</para></summary>
///<param name="index">Default index for items which don't provide one</param>
///<param name="body">The operation definition and data (action-data pairs), separated by newlines</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Bulk<TResponse>(string index, PostData body, BulkRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_bulk"), body, _params(requestParameters));
///<summary>POST on /{index}/_bulk <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html</para></summary>
///<param name="index">Default index for items which don't provide one</param>
///<param name="body">The operation definition and data (action-data pairs), separated by newlines</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> BulkAsync<TResponse>(string index, PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_bulk"), ctx, body, _params(requestParameters));
///<summary>PUT on /_bulk <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html</para></summary>
///<param name="body">The operation definition and data (action-data pairs), separated by newlines</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse BulkPut<TResponse>(PostData body, BulkRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(PUT, Url($"_bulk"), body, _params(requestParameters));
///<summary>PUT on /_bulk <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html</para></summary>
///<param name="body">The operation definition and data (action-data pairs), separated by newlines</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> BulkPutAsync<TResponse>(PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(PUT, Url($"_bulk"), ctx, body, _params(requestParameters));
///<summary>PUT on /{index}/_bulk <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html</para></summary>
///<param name="index">Default index for items which don't provide one</param>
///<param name="body">The operation definition and data (action-data pairs), separated by newlines</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse BulkPut<TResponse>(string index, PostData body, BulkRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(PUT, Url($"{index.NotNull("index")}/_bulk"), body, _params(requestParameters));
///<summary>PUT on /{index}/_bulk <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html</para></summary>
///<param name="index">Default index for items which don't provide one</param>
///<param name="body">The operation definition and data (action-data pairs), separated by newlines</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> BulkPutAsync<TResponse>(string index, PostData body, BulkRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(PUT, Url($"{index.NotNull("index")}/_bulk"), ctx, body, _params(requestParameters));
///<summary>GET on /_cat/aliases <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatAliases<TResponse>(CatAliasesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/aliases"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/aliases <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatAliasesAsync<TResponse>(CatAliasesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/aliases"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/aliases/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html</para></summary>
///<param name="name">A comma-separated list of alias names to return</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatAliases<TResponse>(string name, CatAliasesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/aliases/{name.NotNull("name")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/aliases/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html</para></summary>
///<param name="name">A comma-separated list of alias names to return</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatAliasesAsync<TResponse>(string name, CatAliasesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/aliases/{name.NotNull("name")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/allocation <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatAllocation<TResponse>(CatAllocationRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/allocation"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/allocation <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatAllocationAsync<TResponse>(CatAllocationRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/allocation"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/allocation/{node_id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html</para></summary>
///<param name="node_id">A comma-separated list of node IDs or names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatAllocation<TResponse>(string node_id, CatAllocationRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/allocation/{node_id.NotNull("node_id")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/allocation/{node_id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html</para></summary>
///<param name="node_id">A comma-separated list of node IDs or names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatAllocationAsync<TResponse>(string node_id, CatAllocationRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/allocation/{node_id.NotNull("node_id")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/count <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatCount<TResponse>(CatCountRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/count"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/count <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatCountAsync<TResponse>(CatCountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/count"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/count/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html</para></summary>
///<param name="index">A comma-separated list of index names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatCount<TResponse>(string index, CatCountRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/count/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/count/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html</para></summary>
///<param name="index">A comma-separated list of index names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatCountAsync<TResponse>(string index, CatCountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/count/{index.NotNull("index")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/fielddata <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatFielddata<TResponse>(CatFielddataRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/fielddata"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/fielddata <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatFielddataAsync<TResponse>(CatFielddataRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/fielddata"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/fielddata/{fields} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html</para></summary>
///<param name="fields">A comma-separated list of fields to return the fielddata size</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatFielddata<TResponse>(string fields, CatFielddataRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/fielddata/{fields.NotNull("fields")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/fielddata/{fields} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html</para></summary>
///<param name="fields">A comma-separated list of fields to return the fielddata size</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatFielddataAsync<TResponse>(string fields, CatFielddataRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/fielddata/{fields.NotNull("fields")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/health <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatHealth<TResponse>(CatHealthRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/health"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/health <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatHealthAsync<TResponse>(CatHealthRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/health"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatHelp<TResponse>(CatHelpRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatHelpAsync<TResponse>(CatHelpRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/indices <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatIndices<TResponse>(CatIndicesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/indices"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/indices <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatIndicesAsync<TResponse>(CatIndicesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/indices"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/indices/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html</para></summary>
///<param name="index">A comma-separated list of index names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatIndices<TResponse>(string index, CatIndicesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/indices/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/indices/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html</para></summary>
///<param name="index">A comma-separated list of index names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatIndicesAsync<TResponse>(string index, CatIndicesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/indices/{index.NotNull("index")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/master <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatMaster<TResponse>(CatMasterRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/master"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/master <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatMasterAsync<TResponse>(CatMasterRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/master"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/nodeattrs <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatNodeattrs<TResponse>(CatNodeAttributesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/nodeattrs"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/nodeattrs <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatNodeattrsAsync<TResponse>(CatNodeAttributesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/nodeattrs"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/nodes <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatNodes<TResponse>(CatNodesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/nodes"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/nodes <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatNodesAsync<TResponse>(CatNodesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/nodes"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/pending_tasks <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatPendingTasks<TResponse>(CatPendingTasksRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/pending_tasks"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/pending_tasks <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatPendingTasksAsync<TResponse>(CatPendingTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/pending_tasks"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/plugins <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatPlugins<TResponse>(CatPluginsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/plugins"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/plugins <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatPluginsAsync<TResponse>(CatPluginsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/plugins"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/recovery <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatRecovery<TResponse>(CatRecoveryRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/recovery"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/recovery <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatRecoveryAsync<TResponse>(CatRecoveryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/recovery"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/recovery/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html</para></summary>
///<param name="index">A comma-separated list of index names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatRecovery<TResponse>(string index, CatRecoveryRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/recovery/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/recovery/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html</para></summary>
///<param name="index">A comma-separated list of index names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatRecoveryAsync<TResponse>(string index, CatRecoveryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/recovery/{index.NotNull("index")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/repositories <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatRepositories<TResponse>(CatRepositoriesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/repositories"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/repositories <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatRepositoriesAsync<TResponse>(CatRepositoriesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/repositories"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/segments <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatSegments<TResponse>(CatSegmentsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/segments"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/segments <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatSegmentsAsync<TResponse>(CatSegmentsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/segments"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/segments/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html</para></summary>
///<param name="index">A comma-separated list of index names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatSegments<TResponse>(string index, CatSegmentsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/segments/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/segments/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html</para></summary>
///<param name="index">A comma-separated list of index names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatSegmentsAsync<TResponse>(string index, CatSegmentsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/segments/{index.NotNull("index")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/shards <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatShards<TResponse>(CatShardsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/shards"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/shards <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatShardsAsync<TResponse>(CatShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/shards"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/shards/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html</para></summary>
///<param name="index">A comma-separated list of index names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatShards<TResponse>(string index, CatShardsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/shards/{index.NotNull("index")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/shards/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html</para></summary>
///<param name="index">A comma-separated list of index names to limit the returned information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatShardsAsync<TResponse>(string index, CatShardsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/shards/{index.NotNull("index")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/snapshots <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatSnapshots<TResponse>(CatSnapshotsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/snapshots"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/snapshots <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatSnapshotsAsync<TResponse>(CatSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/snapshots"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/snapshots/{repository} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html</para></summary>
///<param name="repository">Name of repository from which to fetch the snapshot information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatSnapshots<TResponse>(string repository, CatSnapshotsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/snapshots/{repository.NotNull("repository")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/snapshots/{repository} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html</para></summary>
///<param name="repository">Name of repository from which to fetch the snapshot information</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatSnapshotsAsync<TResponse>(string repository, CatSnapshotsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/snapshots/{repository.NotNull("repository")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/tasks <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatTasks<TResponse>(CatTasksRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/tasks"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/tasks <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatTasksAsync<TResponse>(CatTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/tasks"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/templates <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatTemplates<TResponse>(CatTemplatesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/templates"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/templates <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatTemplatesAsync<TResponse>(CatTemplatesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/templates"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/templates/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html</para></summary>
///<param name="name">A pattern that returned template names must match</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatTemplates<TResponse>(string name, CatTemplatesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/templates/{name.NotNull("name")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/templates/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html</para></summary>
///<param name="name">A pattern that returned template names must match</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatTemplatesAsync<TResponse>(string name, CatTemplatesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/templates/{name.NotNull("name")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/thread_pool <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatThreadPool<TResponse>(CatThreadPoolRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/thread_pool"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/thread_pool <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatThreadPoolAsync<TResponse>(CatThreadPoolRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/thread_pool"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/thread_pool/{thread_pool_patterns} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html</para></summary>
///<param name="thread_pool_patterns">A comma-separated list of regular-expressions to filter the thread pools in the output</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CatThreadPool<TResponse>(string thread_pool_patterns, CatThreadPoolRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cat/thread_pool/{thread_pool_patterns.NotNull("thread_pool_patterns")}"), null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>GET on /_cat/thread_pool/{thread_pool_patterns} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html</para></summary>
///<param name="thread_pool_patterns">A comma-separated list of regular-expressions to filter the thread pools in the output</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CatThreadPoolAsync<TResponse>(string thread_pool_patterns, CatThreadPoolRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cat/thread_pool/{thread_pool_patterns.NotNull("thread_pool_patterns")}"), ctx, null, _params(requestParameters, contentType: "text/plain", accept: "text/plain"));
///<summary>DELETE on /_search/scroll <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html</para></summary>
///<param name="body">A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClearScroll<TResponse>(PostData body, ClearScrollRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(DELETE, Url($"_search/scroll"), body, _params(requestParameters));
///<summary>DELETE on /_search/scroll <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html</para></summary>
///<param name="body">A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClearScrollAsync<TResponse>(PostData body, ClearScrollRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(DELETE, Url($"_search/scroll"), ctx, body, _params(requestParameters));
///<summary>GET on /_cluster/allocation/explain <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterAllocationExplainGet<TResponse>(ClusterAllocationExplainRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cluster/allocation/explain"), null, _params(requestParameters));
///<summary>GET on /_cluster/allocation/explain <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterAllocationExplainGetAsync<TResponse>(ClusterAllocationExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cluster/allocation/explain"), ctx, null, _params(requestParameters));
///<summary>POST on /_cluster/allocation/explain <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html</para></summary>
///<param name="body">The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterAllocationExplain<TResponse>(PostData body, ClusterAllocationExplainRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_cluster/allocation/explain"), body, _params(requestParameters));
///<summary>POST on /_cluster/allocation/explain <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html</para></summary>
///<param name="body">The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterAllocationExplainAsync<TResponse>(PostData body, ClusterAllocationExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_cluster/allocation/explain"), ctx, body, _params(requestParameters));
///<summary>GET on /_cluster/settings <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterGetSettings<TResponse>(ClusterGetSettingsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cluster/settings"), null, _params(requestParameters));
///<summary>GET on /_cluster/settings <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterGetSettingsAsync<TResponse>(ClusterGetSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cluster/settings"), ctx, null, _params(requestParameters));
///<summary>GET on /_cluster/health <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterHealth<TResponse>(ClusterHealthRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cluster/health"), null, _params(requestParameters));
///<summary>GET on /_cluster/health <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterHealthAsync<TResponse>(ClusterHealthRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cluster/health"), ctx, null, _params(requestParameters));
///<summary>GET on /_cluster/health/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html</para></summary>
///<param name="index">Limit the information returned to a specific index</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterHealth<TResponse>(string index, ClusterHealthRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cluster/health/{index.NotNull("index")}"), null, _params(requestParameters));
///<summary>GET on /_cluster/health/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html</para></summary>
///<param name="index">Limit the information returned to a specific index</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterHealthAsync<TResponse>(string index, ClusterHealthRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cluster/health/{index.NotNull("index")}"), ctx, null, _params(requestParameters));
///<summary>GET on /_cluster/pending_tasks <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterPendingTasks<TResponse>(ClusterPendingTasksRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cluster/pending_tasks"), null, _params(requestParameters));
///<summary>GET on /_cluster/pending_tasks <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterPendingTasksAsync<TResponse>(ClusterPendingTasksRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cluster/pending_tasks"), ctx, null, _params(requestParameters));
///<summary>PUT on /_cluster/settings <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html</para></summary>
///<param name="body">The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart).</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterPutSettings<TResponse>(PostData body, ClusterPutSettingsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(PUT, Url($"_cluster/settings"), body, _params(requestParameters));
///<summary>PUT on /_cluster/settings <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html</para></summary>
///<param name="body">The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart).</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterPutSettingsAsync<TResponse>(PostData body, ClusterPutSettingsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(PUT, Url($"_cluster/settings"), ctx, body, _params(requestParameters));
///<summary>GET on /_remote/info <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterRemoteInfo<TResponse>(RemoteInfoRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_remote/info"), null, _params(requestParameters));
///<summary>GET on /_remote/info <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterRemoteInfoAsync<TResponse>(RemoteInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_remote/info"), ctx, null, _params(requestParameters));
///<summary>POST on /_cluster/reroute <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html</para></summary>
///<param name="body">The definition of `commands` to perform (`move`, `cancel`, `allocate`)</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterReroute<TResponse>(PostData body, ClusterRerouteRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_cluster/reroute"), body, _params(requestParameters));
///<summary>POST on /_cluster/reroute <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html</para></summary>
///<param name="body">The definition of `commands` to perform (`move`, `cancel`, `allocate`)</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterRerouteAsync<TResponse>(PostData body, ClusterRerouteRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_cluster/reroute"), ctx, body, _params(requestParameters));
///<summary>GET on /_cluster/state <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterState<TResponse>(ClusterStateRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cluster/state"), null, _params(requestParameters));
///<summary>GET on /_cluster/state <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterStateAsync<TResponse>(ClusterStateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cluster/state"), ctx, null, _params(requestParameters));
///<summary>GET on /_cluster/state/{metric} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html</para></summary>
///<param name="metric">Limit the information returned to the specified metrics</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterState<TResponse>(string metric, ClusterStateRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cluster/state/{metric.NotNull("metric")}"), null, _params(requestParameters));
///<summary>GET on /_cluster/state/{metric} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html</para></summary>
///<param name="metric">Limit the information returned to the specified metrics</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterStateAsync<TResponse>(string metric, ClusterStateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cluster/state/{metric.NotNull("metric")}"), ctx, null, _params(requestParameters));
///<summary>GET on /_cluster/state/{metric}/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html</para></summary>
///<param name="metric">Limit the information returned to the specified metrics</param>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterState<TResponse>(string metric, string index, ClusterStateRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cluster/state/{metric.NotNull("metric")}/{index.NotNull("index")}"), null, _params(requestParameters));
///<summary>GET on /_cluster/state/{metric}/{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html</para></summary>
///<param name="metric">Limit the information returned to the specified metrics</param>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterStateAsync<TResponse>(string metric, string index, ClusterStateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cluster/state/{metric.NotNull("metric")}/{index.NotNull("index")}"), ctx, null, _params(requestParameters));
///<summary>GET on /_cluster/stats <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterStats<TResponse>(ClusterStatsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cluster/stats"), null, _params(requestParameters));
///<summary>GET on /_cluster/stats <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterStatsAsync<TResponse>(ClusterStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cluster/stats"), ctx, null, _params(requestParameters));
///<summary>GET on /_cluster/stats/nodes/{node_id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html</para></summary>
///<param name="node_id">A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ClusterStats<TResponse>(string node_id, ClusterStatsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_cluster/stats/nodes/{node_id.NotNull("node_id")}"), null, _params(requestParameters));
///<summary>GET on /_cluster/stats/nodes/{node_id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html</para></summary>
///<param name="node_id">A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ClusterStatsAsync<TResponse>(string node_id, ClusterStatsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_cluster/stats/nodes/{node_id.NotNull("node_id")}"), ctx, null, _params(requestParameters));
///<summary>POST on /_count <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html</para></summary>
///<param name="body">A query to restrict the results specified with the Query DSL (optional)</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Count<TResponse>(PostData body, CountRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_count"), body, _params(requestParameters));
///<summary>POST on /_count <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html</para></summary>
///<param name="body">A query to restrict the results specified with the Query DSL (optional)</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CountAsync<TResponse>(PostData body, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_count"), ctx, body, _params(requestParameters));
///<summary>POST on /{index}/_count <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html</para></summary>
///<param name="index">A comma-separated list of indices to restrict the results</param>
///<param name="body">A query to restrict the results specified with the Query DSL (optional)</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Count<TResponse>(string index, PostData body, CountRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_count"), body, _params(requestParameters));
///<summary>POST on /{index}/_count <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html</para></summary>
///<param name="index">A comma-separated list of indices to restrict the results</param>
///<param name="body">A query to restrict the results specified with the Query DSL (optional)</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CountAsync<TResponse>(string index, PostData body, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_count"), ctx, body, _params(requestParameters));
///<summary>GET on /_count <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CountGet<TResponse>(CountRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_count"), null, _params(requestParameters));
///<summary>GET on /_count <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CountGetAsync<TResponse>(CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_count"), ctx, null, _params(requestParameters));
///<summary>GET on /{index}/_count <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html</para></summary>
///<param name="index">A comma-separated list of indices to restrict the results</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CountGet<TResponse>(string index, CountRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"{index.NotNull("index")}/_count"), null, _params(requestParameters));
///<summary>GET on /{index}/_count <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html</para></summary>
///<param name="index">A comma-separated list of indices to restrict the results</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CountGetAsync<TResponse>(string index, CountRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"{index.NotNull("index")}/_count"), ctx, null, _params(requestParameters));
///<summary>PUT on /{index}/_create/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">Document ID</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Create<TResponse>(string index, string id, PostData body, CreateRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(PUT, Url($"{index.NotNull("index")}/_create/{id.NotNull("id")}"), body, _params(requestParameters));
///<summary>PUT on /{index}/_create/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">Document ID</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CreateAsync<TResponse>(string index, string id, PostData body, CreateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(PUT, Url($"{index.NotNull("index")}/_create/{id.NotNull("id")}"), ctx, body, _params(requestParameters));
///<summary>POST on /{index}/_create/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">Document ID</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse CreatePost<TResponse>(string index, string id, PostData body, CreateRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_create/{id.NotNull("id")}"), body, _params(requestParameters));
///<summary>POST on /{index}/_create/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">Document ID</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> CreatePostAsync<TResponse>(string index, string id, PostData body, CreateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_create/{id.NotNull("id")}"), ctx, body, _params(requestParameters));
///<summary>DELETE on /{index}/_doc/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Delete<TResponse>(string index, string id, DeleteRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(DELETE, Url($"{index.NotNull("index")}/_doc/{id.NotNull("id")}"), null, _params(requestParameters));
///<summary>DELETE on /{index}/_doc/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> DeleteAsync<TResponse>(string index, string id, DeleteRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(DELETE, Url($"{index.NotNull("index")}/_doc/{id.NotNull("id")}"), ctx, null, _params(requestParameters));
///<summary>POST on /{index}/_delete_by_query <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html</para></summary>
///<param name="index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
///<param name="body">The search definition using the Query DSL</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse DeleteByQuery<TResponse>(string index, PostData body, DeleteByQueryRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_delete_by_query"), body, _params(requestParameters));
///<summary>POST on /{index}/_delete_by_query <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html</para></summary>
///<param name="index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
///<param name="body">The search definition using the Query DSL</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> DeleteByQueryAsync<TResponse>(string index, PostData body, DeleteByQueryRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_delete_by_query"), ctx, body, _params(requestParameters));
///<summary>POST on /_delete_by_query/{task_id}/_rethrottle <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html</para></summary>
///<param name="task_id">The task id to rethrottle</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse DeleteByQueryRethrottle<TResponse>(string task_id, DeleteByQueryRethrottleRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_delete_by_query/{task_id.NotNull("task_id")}/_rethrottle"), null, _params(requestParameters));
///<summary>POST on /_delete_by_query/{task_id}/_rethrottle <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html</para></summary>
///<param name="task_id">The task id to rethrottle</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> DeleteByQueryRethrottleAsync<TResponse>(string task_id, DeleteByQueryRethrottleRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_delete_by_query/{task_id.NotNull("task_id")}/_rethrottle"), ctx, null, _params(requestParameters));
///<summary>DELETE on /_scripts/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html</para></summary>
///<param name="id">Script ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse DeleteScript<TResponse>(string id, DeleteScriptRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(DELETE, Url($"_scripts/{id.NotNull("id")}"), null, _params(requestParameters));
///<summary>DELETE on /_scripts/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html</para></summary>
///<param name="id">Script ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> DeleteScriptAsync<TResponse>(string id, DeleteScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(DELETE, Url($"_scripts/{id.NotNull("id")}"), ctx, null, _params(requestParameters));
///<summary>HEAD on /{index}/_doc/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Exists<TResponse>(string index, string id, DocumentExistsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(HEAD, Url($"{index.NotNull("index")}/_doc/{id.NotNull("id")}"), null, _params(requestParameters));
///<summary>HEAD on /{index}/_doc/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ExistsAsync<TResponse>(string index, string id, DocumentExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(HEAD, Url($"{index.NotNull("index")}/_doc/{id.NotNull("id")}"), ctx, null, _params(requestParameters));
///<summary>HEAD on /{index}/_source/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ExistsSource<TResponse>(string index, string id, SourceExistsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(HEAD, Url($"{index.NotNull("index")}/_source/{id.NotNull("id")}"), null, _params(requestParameters));
///<summary>HEAD on /{index}/_source/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ExistsSourceAsync<TResponse>(string index, string id, SourceExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(HEAD, Url($"{index.NotNull("index")}/_source/{id.NotNull("id")}"), ctx, null, _params(requestParameters));
///<summary>GET on /{index}/_explain/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse ExplainGet<TResponse>(string index, string id, ExplainRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"{index.NotNull("index")}/_explain/{id.NotNull("id")}"), null, _params(requestParameters));
///<summary>GET on /{index}/_explain/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ExplainGetAsync<TResponse>(string index, string id, ExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"{index.NotNull("index")}/_explain/{id.NotNull("id")}"), ctx, null, _params(requestParameters));
///<summary>POST on /{index}/_explain/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="body">The query definition using the Query DSL</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Explain<TResponse>(string index, string id, PostData body, ExplainRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_explain/{id.NotNull("id")}"), body, _params(requestParameters));
///<summary>POST on /{index}/_explain/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="body">The query definition using the Query DSL</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> ExplainAsync<TResponse>(string index, string id, PostData body, ExplainRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_explain/{id.NotNull("id")}"), ctx, body, _params(requestParameters));
///<summary>GET on /_field_caps <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse FieldCapsGet<TResponse>(FieldCapabilitiesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_field_caps"), null, _params(requestParameters));
///<summary>GET on /_field_caps <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> FieldCapsGetAsync<TResponse>(FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_field_caps"), ctx, null, _params(requestParameters));
///<summary>GET on /{index}/_field_caps <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse FieldCapsGet<TResponse>(string index, FieldCapabilitiesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"{index.NotNull("index")}/_field_caps"), null, _params(requestParameters));
///<summary>GET on /{index}/_field_caps <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> FieldCapsGetAsync<TResponse>(string index, FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"{index.NotNull("index")}/_field_caps"), ctx, null, _params(requestParameters));
///<summary>POST on /_field_caps <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse FieldCaps<TResponse>(FieldCapabilitiesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_field_caps"), null, _params(requestParameters));
///<summary>POST on /_field_caps <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> FieldCapsAsync<TResponse>(FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_field_caps"), ctx, null, _params(requestParameters));
///<summary>POST on /{index}/_field_caps <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse FieldCaps<TResponse>(string index, FieldCapabilitiesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_field_caps"), null, _params(requestParameters));
///<summary>POST on /{index}/_field_caps <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All to perform the operation on all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> FieldCapsAsync<TResponse>(string index, FieldCapabilitiesRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_field_caps"), ctx, null, _params(requestParameters));
///<summary>GET on /{index}/_doc/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Get<TResponse>(string index, string id, GetRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"{index.NotNull("index")}/_doc/{id.NotNull("id")}"), null, _params(requestParameters));
///<summary>GET on /{index}/_doc/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> GetAsync<TResponse>(string index, string id, GetRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"{index.NotNull("index")}/_doc/{id.NotNull("id")}"), ctx, null, _params(requestParameters));
///<summary>GET on /_scripts/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html</para></summary>
///<param name="id">Script ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse GetScript<TResponse>(string id, GetScriptRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_scripts/{id.NotNull("id")}"), null, _params(requestParameters));
///<summary>GET on /_scripts/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html</para></summary>
///<param name="id">Script ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> GetScriptAsync<TResponse>(string id, GetScriptRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_scripts/{id.NotNull("id")}"), ctx, null, _params(requestParameters));
///<summary>GET on /{index}/_source/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse GetSource<TResponse>(string index, string id, SourceRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"{index.NotNull("index")}/_source/{id.NotNull("id")}"), null, _params(requestParameters));
///<summary>GET on /{index}/_source/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">The document ID</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> GetSourceAsync<TResponse>(string index, string id, SourceRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"{index.NotNull("index")}/_source/{id.NotNull("id")}"), ctx, null, _params(requestParameters));
///<summary>POST on /{index}/_doc/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">Document ID</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Index<TResponse>(string index, string id, PostData body, IndexRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_doc/{id.NotNull("id")}"), body, _params(requestParameters));
///<summary>POST on /{index}/_doc/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">Document ID</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndexAsync<TResponse>(string index, string id, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_doc/{id.NotNull("id")}"), ctx, body, _params(requestParameters));
///<summary>POST on /{index}/_doc <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse Index<TResponse>(string index, PostData body, IndexRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_doc"), body, _params(requestParameters));
///<summary>POST on /{index}/_doc <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndexAsync<TResponse>(string index, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_doc"), ctx, body, _params(requestParameters));
///<summary>PUT on /{index}/_doc/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">Document ID</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndexPut<TResponse>(string index, string id, PostData body, IndexRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(PUT, Url($"{index.NotNull("index")}/_doc/{id.NotNull("id")}"), body, _params(requestParameters));
///<summary>PUT on /{index}/_doc/{id} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="id">Document ID</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndexPutAsync<TResponse>(string index, string id, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(PUT, Url($"{index.NotNull("index")}/_doc/{id.NotNull("id")}"), ctx, body, _params(requestParameters));
///<summary>PUT on /{index}/_doc <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndexPut<TResponse>(string index, PostData body, IndexRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(PUT, Url($"{index.NotNull("index")}/_doc"), body, _params(requestParameters));
///<summary>PUT on /{index}/_doc <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="body">The document</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndexPutAsync<TResponse>(string index, PostData body, IndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(PUT, Url($"{index.NotNull("index")}/_doc"), ctx, body, _params(requestParameters));
///<summary>GET on /_analyze <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesAnalyzeGetForAll<TResponse>(AnalyzeRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_analyze"), null, _params(requestParameters));
///<summary>GET on /_analyze <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesAnalyzeGetForAllAsync<TResponse>(AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_analyze"), ctx, null, _params(requestParameters));
///<summary>GET on /{index}/_analyze <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html</para></summary>
///<param name="index">The name of the index to scope the operation</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesAnalyzeGet<TResponse>(string index, AnalyzeRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"{index.NotNull("index")}/_analyze"), null, _params(requestParameters));
///<summary>GET on /{index}/_analyze <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html</para></summary>
///<param name="index">The name of the index to scope the operation</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesAnalyzeGetAsync<TResponse>(string index, AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"{index.NotNull("index")}/_analyze"), ctx, null, _params(requestParameters));
///<summary>POST on /_analyze <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html</para></summary>
///<param name="body">Define analyzer/tokenizer parameters and the text on which the analysis should be performed</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesAnalyzeForAll<TResponse>(PostData body, AnalyzeRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_analyze"), body, _params(requestParameters));
///<summary>POST on /_analyze <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html</para></summary>
///<param name="body">Define analyzer/tokenizer parameters and the text on which the analysis should be performed</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesAnalyzeForAllAsync<TResponse>(PostData body, AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_analyze"), ctx, body, _params(requestParameters));
///<summary>POST on /{index}/_analyze <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html</para></summary>
///<param name="index">The name of the index to scope the operation</param>
///<param name="body">Define analyzer/tokenizer parameters and the text on which the analysis should be performed</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesAnalyze<TResponse>(string index, PostData body, AnalyzeRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_analyze"), body, _params(requestParameters));
///<summary>POST on /{index}/_analyze <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html</para></summary>
///<param name="index">The name of the index to scope the operation</param>
///<param name="body">Define analyzer/tokenizer parameters and the text on which the analysis should be performed</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesAnalyzeAsync<TResponse>(string index, PostData body, AnalyzeRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_analyze"), ctx, body, _params(requestParameters));
///<summary>POST on /_cache/clear <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesClearCacheForAll<TResponse>(ClearCacheRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_cache/clear"), null, _params(requestParameters));
///<summary>POST on /_cache/clear <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesClearCacheForAllAsync<TResponse>(ClearCacheRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_cache/clear"), ctx, null, _params(requestParameters));
///<summary>POST on /{index}/_cache/clear <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html</para></summary>
///<param name="index">A comma-separated list of index name to limit the operation</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesClearCache<TResponse>(string index, ClearCacheRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_cache/clear"), null, _params(requestParameters));
///<summary>POST on /{index}/_cache/clear <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html</para></summary>
///<param name="index">A comma-separated list of index name to limit the operation</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesClearCacheAsync<TResponse>(string index, ClearCacheRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_cache/clear"), ctx, null, _params(requestParameters));
///<summary>POST on /{index}/_close <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html</para></summary>
///<param name="index">A comma separated list of indices to close</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesClose<TResponse>(string index, CloseIndexRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_close"), null, _params(requestParameters));
///<summary>POST on /{index}/_close <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html</para></summary>
///<param name="index">A comma separated list of indices to close</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesCloseAsync<TResponse>(string index, CloseIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_close"), ctx, null, _params(requestParameters));
///<summary>PUT on /{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="body">The configuration for the index (`settings` and `mappings`)</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesCreate<TResponse>(string index, PostData body, CreateIndexRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(PUT, Url($"{index.NotNull("index")}"), body, _params(requestParameters));
///<summary>PUT on /{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html</para></summary>
///<param name="index">The name of the index</param>
///<param name="body">The configuration for the index (`settings` and `mappings`)</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesCreateAsync<TResponse>(string index, PostData body, CreateIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(PUT, Url($"{index.NotNull("index")}"), ctx, body, _params(requestParameters));
///<summary>DELETE on /{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html</para></summary>
///<param name="index">A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesDelete<TResponse>(string index, DeleteIndexRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(DELETE, Url($"{index.NotNull("index")}"), null, _params(requestParameters));
///<summary>DELETE on /{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html</para></summary>
///<param name="index">A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesDeleteAsync<TResponse>(string index, DeleteIndexRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(DELETE, Url($"{index.NotNull("index")}"), ctx, null, _params(requestParameters));
///<summary>DELETE on /{index}/_alias/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html</para></summary>
///<param name="index">A comma-separated list of index names (supports wildcards); use `_all` for all indices</param>
///<param name="name">A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices.</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesDeleteAlias<TResponse>(string index, string name, DeleteAliasRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(DELETE, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), null, _params(requestParameters));
///<summary>DELETE on /{index}/_alias/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html</para></summary>
///<param name="index">A comma-separated list of index names (supports wildcards); use `_all` for all indices</param>
///<param name="name">A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices.</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesDeleteAliasAsync<TResponse>(string index, string name, DeleteAliasRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(DELETE, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), ctx, null, _params(requestParameters));
///<summary>DELETE on /_template/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html</para></summary>
///<param name="name">The name of the template</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesDeleteTemplateForAll<TResponse>(string name, DeleteIndexTemplateRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(DELETE, Url($"_template/{name.NotNull("name")}"), null, _params(requestParameters));
///<summary>DELETE on /_template/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html</para></summary>
///<param name="name">The name of the template</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesDeleteTemplateForAllAsync<TResponse>(string name, DeleteIndexTemplateRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(DELETE, Url($"_template/{name.NotNull("name")}"), ctx, null, _params(requestParameters));
///<summary>HEAD on /{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html</para></summary>
///<param name="index">A comma-separated list of index names</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesExists<TResponse>(string index, IndexExistsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(HEAD, Url($"{index.NotNull("index")}"), null, _params(requestParameters));
///<summary>HEAD on /{index} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html</para></summary>
///<param name="index">A comma-separated list of index names</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesExistsAsync<TResponse>(string index, IndexExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(HEAD, Url($"{index.NotNull("index")}"), ctx, null, _params(requestParameters));
///<summary>HEAD on /_alias/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html</para></summary>
///<param name="name">A comma-separated list of alias names to return</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesExistsAliasForAll<TResponse>(string name, AliasExistsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(HEAD, Url($"_alias/{name.NotNull("name")}"), null, _params(requestParameters));
///<summary>HEAD on /_alias/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html</para></summary>
///<param name="name">A comma-separated list of alias names to return</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesExistsAliasForAllAsync<TResponse>(string name, AliasExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(HEAD, Url($"_alias/{name.NotNull("name")}"), ctx, null, _params(requestParameters));
///<summary>HEAD on /{index}/_alias/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html</para></summary>
///<param name="index">A comma-separated list of index names to filter aliases</param>
///<param name="name">A comma-separated list of alias names to return</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesExistsAlias<TResponse>(string index, string name, AliasExistsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(HEAD, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), null, _params(requestParameters));
///<summary>HEAD on /{index}/_alias/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html</para></summary>
///<param name="index">A comma-separated list of index names to filter aliases</param>
///<param name="name">A comma-separated list of alias names to return</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesExistsAliasAsync<TResponse>(string index, string name, AliasExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(HEAD, Url($"{index.NotNull("index")}/_alias/{name.NotNull("name")}"), ctx, null, _params(requestParameters));
///<summary>HEAD on /_template/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html</para></summary>
///<param name="name">The comma separated names of the index templates</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesExistsTemplateForAll<TResponse>(string name, IndexTemplateExistsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(HEAD, Url($"_template/{name.NotNull("name")}"), null, _params(requestParameters));
///<summary>HEAD on /_template/{name} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html</para></summary>
///<param name="name">The comma separated names of the index templates</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesExistsTemplateForAllAsync<TResponse>(string name, IndexTemplateExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(HEAD, Url($"_template/{name.NotNull("name")}"), ctx, null, _params(requestParameters));
///<summary>HEAD on /{index}/_mapping/{type} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html</para></summary>
///<param name="index">A comma-separated list of index names; use `_all` to check the types across all indices</param>
///<param name="type">A comma-separated list of document types to check</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesExistsType<TResponse>(string index, string type, TypeExistsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(HEAD, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}"), null, _params(requestParameters));
///<summary>HEAD on /{index}/_mapping/{type} <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html</para></summary>
///<param name="index">A comma-separated list of index names; use `_all` to check the types across all indices</param>
///<param name="type">A comma-separated list of document types to check</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesExistsTypeAsync<TResponse>(string index, string type, TypeExistsRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(HEAD, Url($"{index.NotNull("index")}/_mapping/{type.NotNull("type")}"), ctx, null, _params(requestParameters));
///<summary>POST on /_flush <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesFlushForAll<TResponse>(FlushRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_flush"), null, _params(requestParameters));
///<summary>POST on /_flush <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesFlushForAllAsync<TResponse>(FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_flush"), ctx, null, _params(requestParameters));
///<summary>POST on /{index}/_flush <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All for all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesFlush<TResponse>(string index, FlushRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_flush"), null, _params(requestParameters));
///<summary>POST on /{index}/_flush <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All for all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesFlushAsync<TResponse>(string index, FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_flush"), ctx, null, _params(requestParameters));
///<summary>GET on /_flush <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesFlushGetForAll<TResponse>(FlushRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_flush"), null, _params(requestParameters));
///<summary>GET on /_flush <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesFlushGetForAllAsync<TResponse>(FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_flush"), ctx, null, _params(requestParameters));
///<summary>GET on /{index}/_flush <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All for all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesFlushGet<TResponse>(string index, FlushRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"{index.NotNull("index")}/_flush"), null, _params(requestParameters));
///<summary>GET on /{index}/_flush <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All for all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesFlushGetAsync<TResponse>(string index, FlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"{index.NotNull("index")}/_flush"), ctx, null, _params(requestParameters));
///<summary>POST on /_flush/synced <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesFlushSyncedForAll<TResponse>(SyncedFlushRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_flush/synced"), null, _params(requestParameters));
///<summary>POST on /_flush/synced <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesFlushSyncedForAllAsync<TResponse>(SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"_flush/synced"), ctx, null, _params(requestParameters));
///<summary>POST on /{index}/_flush/synced <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All for all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesFlushSynced<TResponse>(string index, SyncedFlushRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"{index.NotNull("index")}/_flush/synced"), null, _params(requestParameters));
///<summary>POST on /{index}/_flush/synced <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All for all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesFlushSyncedAsync<TResponse>(string index, SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(POST, Url($"{index.NotNull("index")}/_flush/synced"), ctx, null, _params(requestParameters));
///<summary>GET on /_flush/synced <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesFlushSyncedGetForAll<TResponse>(SyncedFlushRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_flush/synced"), null, _params(requestParameters));
///<summary>GET on /_flush/synced <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesFlushSyncedGetForAllAsync<TResponse>(SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_flush/synced"), ctx, null, _params(requestParameters));
///<summary>GET on /{index}/_flush/synced <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All for all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesFlushSyncedGet<TResponse>(string index, SyncedFlushRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"{index.NotNull("index")}/_flush/synced"), null, _params(requestParameters));
///<summary>GET on /{index}/_flush/synced <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html</para></summary>
///<param name="index">A comma-separated list of index names; use the special string `_all` or Indices.All for all indices</param>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public Task<TResponse> IndicesFlushSyncedGetAsync<TResponse>(string index, SyncedFlushRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken))
where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"{index.NotNull("index")}/_flush/synced"), ctx, null, _params(requestParameters));
///<summary>POST on /_forcemerge <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>
public TResponse IndicesForcemergeForAll<TResponse>(ForceMergeRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(POST, Url($"_forcemerge"), null, _params(requestParameters));
///<summary>POST on /_forcemerge <para>http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html</para></summary>
///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param>