15
15
//
16
16
// ------------------------------------------------
17
17
18
+ #nullable restore
19
+
18
20
using Elastic . Clients . Elasticsearch . Fluent ;
19
21
using Elastic . Clients . Elasticsearch . Requests ;
20
22
using Elastic . Clients . Elasticsearch . Serialization ;
25
27
using System . Text . Json ;
26
28
using System . Text . Json . Serialization ;
27
29
28
- #nullable restore
29
30
namespace Elastic . Clients . Elasticsearch . AsyncSearch ;
31
+
30
32
public sealed class GetAsyncSearchRequestParameters : RequestParameters
31
33
{
32
- [ JsonIgnore ]
34
+ /// <summary>
35
+ /// <para>Specify the time interval in which the results (partial or final) for this search will be available</para>
36
+ /// </summary>
33
37
public Elastic . Clients . Elasticsearch . Duration ? KeepAlive { get => Q < Elastic . Clients . Elasticsearch . Duration ? > ( "keep_alive" ) ; set => Q ( "keep_alive" , value ) ; }
34
38
35
- [ JsonIgnore ]
39
+ /// <summary>
40
+ /// <para>Specify whether aggregation and suggester names should be prefixed by their respective types in the response</para>
41
+ /// </summary>
36
42
public bool ? TypedKeys { get => Q < bool ? > ( "typed_keys" ) ; set => Q ( "typed_keys" , value ) ; }
37
43
38
- [ JsonIgnore ]
44
+ /// <summary>
45
+ /// <para>Specify the time that the request should block waiting for the final response</para>
46
+ /// </summary>
39
47
public Elastic . Clients . Elasticsearch . Duration ? WaitForCompletionTimeout { get => Q < Elastic . Clients . Elasticsearch . Duration ? > ( "wait_for_completion_timeout" ) ; set => Q ( "wait_for_completion_timeout" , value ) ; }
40
48
}
41
49
50
+ /// <summary>
51
+ /// <para>Retrieves the results of a previously submitted async search request given its ID.</para>
52
+ /// </summary>
42
53
public sealed partial class GetAsyncSearchRequest : PlainRequest < GetAsyncSearchRequestParameters >
43
54
{
44
55
public GetAsyncSearchRequest ( Elastic . Clients . Elasticsearch . Id id ) : base ( r => r . Required ( "id" , id ) )
45
56
{
46
57
}
47
58
48
- internal override ApiUrls ApiUrls => ApiUrlsLookups . AsyncSearchGet ;
59
+ internal override ApiUrls ApiUrls => ApiUrlLookup . AsyncSearchGet ;
60
+
49
61
protected override HttpMethod StaticHttpMethod => HttpMethod . GET ;
62
+
50
63
internal override bool SupportsBody => false ;
64
+
65
+ /// <summary>
66
+ /// <para>Specify the time interval in which the results (partial or final) for this search will be available</para>
67
+ /// </summary>
51
68
[ JsonIgnore ]
52
69
public Elastic . Clients . Elasticsearch . Duration ? KeepAlive { get => Q < Elastic . Clients . Elasticsearch . Duration ? > ( "keep_alive" ) ; set => Q ( "keep_alive" , value ) ; }
53
70
71
+ /// <summary>
72
+ /// <para>Specify whether aggregation and suggester names should be prefixed by their respective types in the response</para>
73
+ /// </summary>
54
74
[ JsonIgnore ]
55
75
public bool ? TypedKeys { get => Q < bool ? > ( "typed_keys" ) ; set => Q ( "typed_keys" , value ) ; }
56
76
77
+ /// <summary>
78
+ /// <para>Specify the time that the request should block waiting for the final response</para>
79
+ /// </summary>
57
80
[ JsonIgnore ]
58
81
public Elastic . Clients . Elasticsearch . Duration ? WaitForCompletionTimeout { get => Q < Elastic . Clients . Elasticsearch . Duration ? > ( "wait_for_completion_timeout" ) ; set => Q ( "wait_for_completion_timeout" , value ) ; }
59
82
}
60
83
84
+ /// <summary>
85
+ /// <para>Retrieves the results of a previously submitted async search request given its ID.</para>
86
+ /// </summary>
61
87
public sealed partial class GetAsyncSearchRequestDescriptor < TDocument > : RequestDescriptor < GetAsyncSearchRequestDescriptor < TDocument > , GetAsyncSearchRequestParameters >
62
88
{
63
89
internal GetAsyncSearchRequestDescriptor ( Action < GetAsyncSearchRequestDescriptor < TDocument > > configure ) => configure . Invoke ( this ) ;
90
+
64
91
public GetAsyncSearchRequestDescriptor ( Elastic . Clients . Elasticsearch . Id id ) : base ( r => r . Required ( "id" , id ) )
65
92
{
66
93
}
@@ -69,12 +96,16 @@ internal GetAsyncSearchRequestDescriptor()
69
96
{
70
97
}
71
98
72
- internal override ApiUrls ApiUrls => ApiUrlsLookups . AsyncSearchGet ;
99
+ internal override ApiUrls ApiUrls => ApiUrlLookup . AsyncSearchGet ;
100
+
73
101
protected override HttpMethod StaticHttpMethod => HttpMethod . GET ;
102
+
74
103
internal override bool SupportsBody => false ;
104
+
75
105
public GetAsyncSearchRequestDescriptor < TDocument > KeepAlive ( Elastic . Clients . Elasticsearch . Duration ? keepAlive ) => Qs ( "keep_alive" , keepAlive ) ;
76
106
public GetAsyncSearchRequestDescriptor < TDocument > TypedKeys ( bool ? typedKeys = true ) => Qs ( "typed_keys" , typedKeys ) ;
77
107
public GetAsyncSearchRequestDescriptor < TDocument > WaitForCompletionTimeout ( Elastic . Clients . Elasticsearch . Duration ? waitForCompletionTimeout ) => Qs ( "wait_for_completion_timeout" , waitForCompletionTimeout ) ;
108
+
78
109
public GetAsyncSearchRequestDescriptor < TDocument > Id ( Elastic . Clients . Elasticsearch . Id id )
79
110
{
80
111
RouteValues . Required ( "id" , id ) ;
@@ -86,9 +117,13 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
86
117
}
87
118
}
88
119
120
+ /// <summary>
121
+ /// <para>Retrieves the results of a previously submitted async search request given its ID.</para>
122
+ /// </summary>
89
123
public sealed partial class GetAsyncSearchRequestDescriptor : RequestDescriptor < GetAsyncSearchRequestDescriptor , GetAsyncSearchRequestParameters >
90
124
{
91
125
internal GetAsyncSearchRequestDescriptor ( Action < GetAsyncSearchRequestDescriptor > configure ) => configure . Invoke ( this ) ;
126
+
92
127
public GetAsyncSearchRequestDescriptor ( Elastic . Clients . Elasticsearch . Id id ) : base ( r => r . Required ( "id" , id ) )
93
128
{
94
129
}
@@ -97,12 +132,16 @@ internal GetAsyncSearchRequestDescriptor()
97
132
{
98
133
}
99
134
100
- internal override ApiUrls ApiUrls => ApiUrlsLookups . AsyncSearchGet ;
135
+ internal override ApiUrls ApiUrls => ApiUrlLookup . AsyncSearchGet ;
136
+
101
137
protected override HttpMethod StaticHttpMethod => HttpMethod . GET ;
138
+
102
139
internal override bool SupportsBody => false ;
140
+
103
141
public GetAsyncSearchRequestDescriptor KeepAlive ( Elastic . Clients . Elasticsearch . Duration ? keepAlive ) => Qs ( "keep_alive" , keepAlive ) ;
104
142
public GetAsyncSearchRequestDescriptor TypedKeys ( bool ? typedKeys = true ) => Qs ( "typed_keys" , typedKeys ) ;
105
143
public GetAsyncSearchRequestDescriptor WaitForCompletionTimeout ( Elastic . Clients . Elasticsearch . Duration ? waitForCompletionTimeout ) => Qs ( "wait_for_completion_timeout" , waitForCompletionTimeout ) ;
144
+
106
145
public GetAsyncSearchRequestDescriptor Id ( Elastic . Clients . Elasticsearch . Id id )
107
146
{
108
147
RouteValues . Required ( "id" , id ) ;
0 commit comments