@@ -248,7 +248,7 @@ public override SubmitAsyncSearchRequest Read(ref Utf8JsonReader reader, Type ty
248248
249249 if ( property == "knn" )
250250 {
251- variant . Knn = JsonSerializer . Deserialize < ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnQuery > ? > ( ref reader , options ) ;
251+ variant . Knn = JsonSerializer . Deserialize < ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnSearch > ? > ( ref reader , options ) ;
252252 continue ;
253253 }
254254
@@ -836,8 +836,8 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
836836 /// <para>Defines the approximate kNN search to run.</para>
837837 /// </summary>
838838 [ JsonInclude , JsonPropertyName ( "knn" ) ]
839- [ SingleOrManyCollectionConverter ( typeof ( Elastic . Clients . Elasticsearch . Serverless . KnnQuery ) ) ]
840- public ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnQuery > ? Knn { get ; set ; }
839+ [ SingleOrManyCollectionConverter ( typeof ( Elastic . Clients . Elasticsearch . Serverless . KnnSearch ) ) ]
840+ public ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnSearch > ? Knn { get ; set ; }
841841
842842 /// <summary>
843843 /// <para>Minimum _score for matching documents. Documents with a lower _score are<br/>not included in the search results.</para>
@@ -1028,10 +1028,10 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Indices(Elastic.Clients.Ela
10281028 private Elastic . Clients . Elasticsearch . Serverless . Core . Search . HighlightDescriptor < TDocument > HighlightDescriptor { get ; set ; }
10291029 private Action < Elastic . Clients . Elasticsearch . Serverless . Core . Search . HighlightDescriptor < TDocument > > HighlightDescriptorAction { get ; set ; }
10301030 private ICollection < IDictionary < Elastic . Clients . Elasticsearch . Serverless . IndexName , double > > ? IndicesBoostValue { get ; set ; }
1031- private ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnQuery > ? KnnValue { get ; set ; }
1032- private Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor < TDocument > KnnDescriptor { get ; set ; }
1033- private Action < Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor < TDocument > > KnnDescriptorAction { get ; set ; }
1034- private Action < Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor < TDocument > > [ ] KnnDescriptorActions { get ; set ; }
1031+ private ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnSearch > ? KnnValue { get ; set ; }
1032+ private Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor < TDocument > KnnDescriptor { get ; set ; }
1033+ private Action < Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor < TDocument > > KnnDescriptorAction { get ; set ; }
1034+ private Action < Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor < TDocument > > [ ] KnnDescriptorActions { get ; set ; }
10351035 private double ? MinScoreValue { get ; set ; }
10361036 private Elastic . Clients . Elasticsearch . Serverless . Core . Search . PointInTimeReference ? PitValue { get ; set ; }
10371037 private Elastic . Clients . Elasticsearch . Serverless . Core . Search . PointInTimeReferenceDescriptor PitDescriptor { get ; set ; }
@@ -1242,7 +1242,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> IndicesBoost(ICollection<ID
12421242 /// <summary>
12431243 /// <para>Defines the approximate kNN search to run.</para>
12441244 /// </summary>
1245- public SubmitAsyncSearchRequestDescriptor < TDocument > Knn ( ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnQuery > ? knn )
1245+ public SubmitAsyncSearchRequestDescriptor < TDocument > Knn ( ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnSearch > ? knn )
12461246 {
12471247 KnnDescriptor = null ;
12481248 KnnDescriptorAction = null ;
@@ -1251,7 +1251,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(ICollection<Elastic.Cli
12511251 return Self ;
12521252 }
12531253
1254- public SubmitAsyncSearchRequestDescriptor < TDocument > Knn ( Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor < TDocument > descriptor )
1254+ public SubmitAsyncSearchRequestDescriptor < TDocument > Knn ( Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor < TDocument > descriptor )
12551255 {
12561256 KnnValue = null ;
12571257 KnnDescriptorAction = null ;
@@ -1260,7 +1260,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(Elastic.Clients.Elastic
12601260 return Self ;
12611261 }
12621262
1263- public SubmitAsyncSearchRequestDescriptor < TDocument > Knn ( Action < Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor < TDocument > > configure )
1263+ public SubmitAsyncSearchRequestDescriptor < TDocument > Knn ( Action < Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor < TDocument > > configure )
12641264 {
12651265 KnnValue = null ;
12661266 KnnDescriptor = null ;
@@ -1269,7 +1269,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(Action<Elastic.Clients.
12691269 return Self ;
12701270 }
12711271
1272- public SubmitAsyncSearchRequestDescriptor < TDocument > Knn ( params Action < Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor < TDocument > > [ ] configure )
1272+ public SubmitAsyncSearchRequestDescriptor < TDocument > Knn ( params Action < Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor < TDocument > > [ ] configure )
12731273 {
12741274 KnnValue = null ;
12751275 KnnDescriptor = null ;
@@ -1740,7 +1740,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
17401740 else if ( KnnDescriptorAction is not null )
17411741 {
17421742 writer . WritePropertyName ( "knn" ) ;
1743- JsonSerializer . Serialize ( writer , new Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor < TDocument > ( KnnDescriptorAction ) , options ) ;
1743+ JsonSerializer . Serialize ( writer , new Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor < TDocument > ( KnnDescriptorAction ) , options ) ;
17441744 }
17451745 else if ( KnnDescriptorActions is not null )
17461746 {
@@ -1749,7 +1749,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
17491749 writer . WriteStartArray ( ) ;
17501750 foreach ( var action in KnnDescriptorActions )
17511751 {
1752- JsonSerializer . Serialize ( writer , new Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor < TDocument > ( action ) , options ) ;
1752+ JsonSerializer . Serialize ( writer , new Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor < TDocument > ( action ) , options ) ;
17531753 }
17541754
17551755 if ( KnnDescriptorActions . Length != 1 )
@@ -1758,7 +1758,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
17581758 else if ( KnnValue is not null )
17591759 {
17601760 writer . WritePropertyName ( "knn" ) ;
1761- SingleOrManySerializationHelper . Serialize < Elastic . Clients . Elasticsearch . Serverless . KnnQuery > ( KnnValue , writer , options ) ;
1761+ SingleOrManySerializationHelper . Serialize < Elastic . Clients . Elasticsearch . Serverless . KnnSearch > ( KnnValue , writer , options ) ;
17621762 }
17631763
17641764 if ( MinScoreValue . HasValue )
@@ -2074,10 +2074,10 @@ public SubmitAsyncSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.
20742074 private Elastic . Clients . Elasticsearch . Serverless . Core . Search . HighlightDescriptor HighlightDescriptor { get ; set ; }
20752075 private Action < Elastic . Clients . Elasticsearch . Serverless . Core . Search . HighlightDescriptor > HighlightDescriptorAction { get ; set ; }
20762076 private ICollection < IDictionary < Elastic . Clients . Elasticsearch . Serverless . IndexName , double > > ? IndicesBoostValue { get ; set ; }
2077- private ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnQuery > ? KnnValue { get ; set ; }
2078- private Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor KnnDescriptor { get ; set ; }
2079- private Action < Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor > KnnDescriptorAction { get ; set ; }
2080- private Action < Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor > [ ] KnnDescriptorActions { get ; set ; }
2077+ private ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnSearch > ? KnnValue { get ; set ; }
2078+ private Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor KnnDescriptor { get ; set ; }
2079+ private Action < Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor > KnnDescriptorAction { get ; set ; }
2080+ private Action < Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor > [ ] KnnDescriptorActions { get ; set ; }
20812081 private double ? MinScoreValue { get ; set ; }
20822082 private Elastic . Clients . Elasticsearch . Serverless . Core . Search . PointInTimeReference ? PitValue { get ; set ; }
20832083 private Elastic . Clients . Elasticsearch . Serverless . Core . Search . PointInTimeReferenceDescriptor PitDescriptor { get ; set ; }
@@ -2288,7 +2288,7 @@ public SubmitAsyncSearchRequestDescriptor IndicesBoost(ICollection<IDictionary<E
22882288 /// <summary>
22892289 /// <para>Defines the approximate kNN search to run.</para>
22902290 /// </summary>
2291- public SubmitAsyncSearchRequestDescriptor Knn ( ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnQuery > ? knn )
2291+ public SubmitAsyncSearchRequestDescriptor Knn ( ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnSearch > ? knn )
22922292 {
22932293 KnnDescriptor = null ;
22942294 KnnDescriptorAction = null ;
@@ -2297,7 +2297,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(ICollection<Elastic.Clients.Elasti
22972297 return Self ;
22982298 }
22992299
2300- public SubmitAsyncSearchRequestDescriptor Knn ( Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor descriptor )
2300+ public SubmitAsyncSearchRequestDescriptor Knn ( Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor descriptor )
23012301 {
23022302 KnnValue = null ;
23032303 KnnDescriptorAction = null ;
@@ -2306,7 +2306,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serv
23062306 return Self ;
23072307 }
23082308
2309- public SubmitAsyncSearchRequestDescriptor Knn ( Action < Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor > configure )
2309+ public SubmitAsyncSearchRequestDescriptor Knn ( Action < Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor > configure )
23102310 {
23112311 KnnValue = null ;
23122312 KnnDescriptor = null ;
@@ -2315,7 +2315,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(Action<Elastic.Clients.Elasticsear
23152315 return Self ;
23162316 }
23172317
2318- public SubmitAsyncSearchRequestDescriptor Knn ( params Action < Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor > [ ] configure )
2318+ public SubmitAsyncSearchRequestDescriptor Knn ( params Action < Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor > [ ] configure )
23192319 {
23202320 KnnValue = null ;
23212321 KnnDescriptor = null ;
@@ -2786,7 +2786,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
27862786 else if ( KnnDescriptorAction is not null )
27872787 {
27882788 writer . WritePropertyName ( "knn" ) ;
2789- JsonSerializer . Serialize ( writer , new Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor ( KnnDescriptorAction ) , options ) ;
2789+ JsonSerializer . Serialize ( writer , new Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor ( KnnDescriptorAction ) , options ) ;
27902790 }
27912791 else if ( KnnDescriptorActions is not null )
27922792 {
@@ -2795,7 +2795,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
27952795 writer . WriteStartArray ( ) ;
27962796 foreach ( var action in KnnDescriptorActions )
27972797 {
2798- JsonSerializer . Serialize ( writer , new Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor ( action ) , options ) ;
2798+ JsonSerializer . Serialize ( writer , new Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor ( action ) , options ) ;
27992799 }
28002800
28012801 if ( KnnDescriptorActions . Length != 1 )
@@ -2804,7 +2804,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
28042804 else if ( KnnValue is not null )
28052805 {
28062806 writer . WritePropertyName ( "knn" ) ;
2807- SingleOrManySerializationHelper . Serialize < Elastic . Clients . Elasticsearch . Serverless . KnnQuery > ( KnnValue , writer , options ) ;
2807+ SingleOrManySerializationHelper . Serialize < Elastic . Clients . Elasticsearch . Serverless . KnnSearch > ( KnnValue , writer , options ) ;
28082808 }
28092809
28102810 if ( MinScoreValue . HasValue )
0 commit comments