@@ -248,7 +248,7 @@ public override SubmitAsyncSearchRequest Read(ref Utf8JsonReader reader, Type ty
248
248
249
249
if ( property == "knn" )
250
250
{
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 ) ;
252
252
continue ;
253
253
}
254
254
@@ -836,8 +836,8 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices
836
836
/// <para>Defines the approximate kNN search to run.</para>
837
837
/// </summary>
838
838
[ 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 ; }
841
841
842
842
/// <summary>
843
843
/// <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
1028
1028
private Elastic . Clients . Elasticsearch . Serverless . Core . Search . HighlightDescriptor < TDocument > HighlightDescriptor { get ; set ; }
1029
1029
private Action < Elastic . Clients . Elasticsearch . Serverless . Core . Search . HighlightDescriptor < TDocument > > HighlightDescriptorAction { get ; set ; }
1030
1030
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 ; }
1035
1035
private double ? MinScoreValue { get ; set ; }
1036
1036
private Elastic . Clients . Elasticsearch . Serverless . Core . Search . PointInTimeReference ? PitValue { get ; set ; }
1037
1037
private Elastic . Clients . Elasticsearch . Serverless . Core . Search . PointInTimeReferenceDescriptor PitDescriptor { get ; set ; }
@@ -1242,7 +1242,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> IndicesBoost(ICollection<ID
1242
1242
/// <summary>
1243
1243
/// <para>Defines the approximate kNN search to run.</para>
1244
1244
/// </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 )
1246
1246
{
1247
1247
KnnDescriptor = null ;
1248
1248
KnnDescriptorAction = null ;
@@ -1251,7 +1251,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(ICollection<Elastic.Cli
1251
1251
return Self ;
1252
1252
}
1253
1253
1254
- public SubmitAsyncSearchRequestDescriptor < TDocument > Knn ( Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor < TDocument > descriptor )
1254
+ public SubmitAsyncSearchRequestDescriptor < TDocument > Knn ( Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor < TDocument > descriptor )
1255
1255
{
1256
1256
KnnValue = null ;
1257
1257
KnnDescriptorAction = null ;
@@ -1260,7 +1260,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(Elastic.Clients.Elastic
1260
1260
return Self ;
1261
1261
}
1262
1262
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 )
1264
1264
{
1265
1265
KnnValue = null ;
1266
1266
KnnDescriptor = null ;
@@ -1269,7 +1269,7 @@ public SubmitAsyncSearchRequestDescriptor<TDocument> Knn(Action<Elastic.Clients.
1269
1269
return Self ;
1270
1270
}
1271
1271
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 )
1273
1273
{
1274
1274
KnnValue = null ;
1275
1275
KnnDescriptor = null ;
@@ -1740,7 +1740,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
1740
1740
else if ( KnnDescriptorAction is not null )
1741
1741
{
1742
1742
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 ) ;
1744
1744
}
1745
1745
else if ( KnnDescriptorActions is not null )
1746
1746
{
@@ -1749,7 +1749,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
1749
1749
writer . WriteStartArray ( ) ;
1750
1750
foreach ( var action in KnnDescriptorActions )
1751
1751
{
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 ) ;
1753
1753
}
1754
1754
1755
1755
if ( KnnDescriptorActions . Length != 1 )
@@ -1758,7 +1758,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
1758
1758
else if ( KnnValue is not null )
1759
1759
{
1760
1760
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 ) ;
1762
1762
}
1763
1763
1764
1764
if ( MinScoreValue . HasValue )
@@ -2074,10 +2074,10 @@ public SubmitAsyncSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.
2074
2074
private Elastic . Clients . Elasticsearch . Serverless . Core . Search . HighlightDescriptor HighlightDescriptor { get ; set ; }
2075
2075
private Action < Elastic . Clients . Elasticsearch . Serverless . Core . Search . HighlightDescriptor > HighlightDescriptorAction { get ; set ; }
2076
2076
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 ; }
2081
2081
private double ? MinScoreValue { get ; set ; }
2082
2082
private Elastic . Clients . Elasticsearch . Serverless . Core . Search . PointInTimeReference ? PitValue { get ; set ; }
2083
2083
private Elastic . Clients . Elasticsearch . Serverless . Core . Search . PointInTimeReferenceDescriptor PitDescriptor { get ; set ; }
@@ -2288,7 +2288,7 @@ public SubmitAsyncSearchRequestDescriptor IndicesBoost(ICollection<IDictionary<E
2288
2288
/// <summary>
2289
2289
/// <para>Defines the approximate kNN search to run.</para>
2290
2290
/// </summary>
2291
- public SubmitAsyncSearchRequestDescriptor Knn ( ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnQuery > ? knn )
2291
+ public SubmitAsyncSearchRequestDescriptor Knn ( ICollection < Elastic . Clients . Elasticsearch . Serverless . KnnSearch > ? knn )
2292
2292
{
2293
2293
KnnDescriptor = null ;
2294
2294
KnnDescriptorAction = null ;
@@ -2297,7 +2297,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(ICollection<Elastic.Clients.Elasti
2297
2297
return Self ;
2298
2298
}
2299
2299
2300
- public SubmitAsyncSearchRequestDescriptor Knn ( Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor descriptor )
2300
+ public SubmitAsyncSearchRequestDescriptor Knn ( Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor descriptor )
2301
2301
{
2302
2302
KnnValue = null ;
2303
2303
KnnDescriptorAction = null ;
@@ -2306,7 +2306,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serv
2306
2306
return Self ;
2307
2307
}
2308
2308
2309
- public SubmitAsyncSearchRequestDescriptor Knn ( Action < Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor > configure )
2309
+ public SubmitAsyncSearchRequestDescriptor Knn ( Action < Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor > configure )
2310
2310
{
2311
2311
KnnValue = null ;
2312
2312
KnnDescriptor = null ;
@@ -2315,7 +2315,7 @@ public SubmitAsyncSearchRequestDescriptor Knn(Action<Elastic.Clients.Elasticsear
2315
2315
return Self ;
2316
2316
}
2317
2317
2318
- public SubmitAsyncSearchRequestDescriptor Knn ( params Action < Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor > [ ] configure )
2318
+ public SubmitAsyncSearchRequestDescriptor Knn ( params Action < Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor > [ ] configure )
2319
2319
{
2320
2320
KnnValue = null ;
2321
2321
KnnDescriptor = null ;
@@ -2786,7 +2786,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
2786
2786
else if ( KnnDescriptorAction is not null )
2787
2787
{
2788
2788
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 ) ;
2790
2790
}
2791
2791
else if ( KnnDescriptorActions is not null )
2792
2792
{
@@ -2795,7 +2795,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
2795
2795
writer . WriteStartArray ( ) ;
2796
2796
foreach ( var action in KnnDescriptorActions )
2797
2797
{
2798
- JsonSerializer . Serialize ( writer , new Elastic . Clients . Elasticsearch . Serverless . KnnQueryDescriptor ( action ) , options ) ;
2798
+ JsonSerializer . Serialize ( writer , new Elastic . Clients . Elasticsearch . Serverless . KnnSearchDescriptor ( action ) , options ) ;
2799
2799
}
2800
2800
2801
2801
if ( KnnDescriptorActions . Length != 1 )
@@ -2804,7 +2804,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
2804
2804
else if ( KnnValue is not null )
2805
2805
{
2806
2806
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 ) ;
2808
2808
}
2809
2809
2810
2810
if ( MinScoreValue . HasValue )
0 commit comments