Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public sealed partial class CountRequestParameters : Elastic.Transport.RequestPa

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -227,7 +227,7 @@ internal CountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -419,7 +419,7 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor AnalyzeWildcard(bool

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -751,7 +751,7 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor<TDocument> AnalyzeWi

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public sealed partial class DeleteByQueryRequestParameters : Elastic.Transport.R

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -466,7 +466,7 @@ internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -915,7 +915,7 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Conflicts(El

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -1645,7 +1645,7 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor<TDocument> C

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public sealed partial class ExplainRequestParameters : Elastic.Transport.Request

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -195,7 +195,7 @@ internal ExplainRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -360,7 +360,7 @@ public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor AnalyzeWildcard(bo

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -721,7 +721,7 @@ public Elastic.Clients.Elasticsearch.ExplainRequestDescriptor<TDocument> Analyze

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public sealed partial class IndicesStatsRequestParameters : Elastic.Transport.Re

/// <summary>
/// <para>
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Level? Level { get => Q<Elastic.Clients.Elasticsearch.Level?>("level"); set => Q("level", value); }
Expand Down Expand Up @@ -221,7 +221,7 @@ internal IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon

/// <summary>
/// <para>
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Level? Level { get => Q<Elastic.Clients.Elasticsearch.Level?>("level"); set => Q("level", value); }
Expand Down Expand Up @@ -449,7 +449,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript

/// <summary>
/// <para>
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? value)
Expand Down Expand Up @@ -736,7 +736,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript

/// <summary>
/// <para>
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
/// Indicates whether statistics are aggregated at the cluster, indices, or shards level.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor<TDocument> Level(Elastic.Clients.Elasticsearch.Level? value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public sealed partial class ValidateQueryRequestParameters : Elastic.Transport.R

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q<Elastic.Clients.Elasticsearch.QueryDsl.Operator?>("default_operator"); set => Q("default_operator", value); }
Expand Down Expand Up @@ -192,7 +192,7 @@ internal ValidateQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q<Elastic.Clients.Elasticsearch.QueryDsl.Operator?>("default_operator"); set => Q("default_operator", value); }
Expand Down Expand Up @@ -347,7 +347,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? value)
Expand Down Expand Up @@ -628,7 +628,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip

/// <summary>
/// <para>
/// The default operator for query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for query string query: <c>and</c> or <c>or</c>.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor<TDocument> DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public sealed partial class NodesStatsRequestParameters : Elastic.Transport.Requ

/// <summary>
/// <para>
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
/// Indicates whether statistics are aggregated at the node, indices, or shards level.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Level? Level { get => Q<Elastic.Clients.Elasticsearch.Level?>("level"); set => Q("level", value); }
Expand Down Expand Up @@ -207,7 +207,7 @@ internal NodesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst

/// <summary>
/// <para>
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
/// Indicates whether statistics are aggregated at the node, indices, or shards level.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Level? Level { get => Q<Elastic.Clients.Elasticsearch.Level?>("level"); set => Q("level", value); }
Expand Down Expand Up @@ -411,7 +411,7 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor IncludeUn

/// <summary>
/// <para>
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
/// Indicates whether statistics are aggregated at the node, indices, or shards level.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? value)
Expand Down Expand Up @@ -693,7 +693,7 @@ public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor<TDocument

/// <summary>
/// <para>
/// Indicates whether statistics are aggregated at the cluster, index, or shard level.
/// Indicates whether statistics are aggregated at the node, indices, or shards level.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Nodes.NodesStatsRequestDescriptor<TDocument> Level(Elastic.Clients.Elasticsearch.Level? value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public sealed partial class ReindexRequestConverter : System.Text.Json.Serializa
private static readonly System.Text.Json.JsonEncodedText PropDest = System.Text.Json.JsonEncodedText.Encode("dest");
private static readonly System.Text.Json.JsonEncodedText PropMaxDocs = System.Text.Json.JsonEncodedText.Encode("max_docs");
private static readonly System.Text.Json.JsonEncodedText PropScript = System.Text.Json.JsonEncodedText.Encode("script");
private static readonly System.Text.Json.JsonEncodedText PropSize = System.Text.Json.JsonEncodedText.Encode("size");
private static readonly System.Text.Json.JsonEncodedText PropSource = System.Text.Json.JsonEncodedText.Encode("source");

public override Elastic.Clients.Elasticsearch.ReindexRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
Expand All @@ -39,7 +38,6 @@ public override Elastic.Clients.Elasticsearch.ReindexRequest Read(ref System.Tex
LocalJsonValue<Elastic.Clients.Elasticsearch.Core.Reindex.Destination> propDest = default;
LocalJsonValue<long?> propMaxDocs = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Script?> propScript = default;
LocalJsonValue<long?> propSize = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Core.Reindex.Source> propSource = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
{
Expand All @@ -63,11 +61,6 @@ public override Elastic.Clients.Elasticsearch.ReindexRequest Read(ref System.Tex
continue;
}

if (propSize.TryReadProperty(ref reader, options, PropSize, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<long>(o)))
{
continue;
}

if (propSource.TryReadProperty(ref reader, options, PropSource, null))
{
continue;
Expand All @@ -89,7 +82,6 @@ public override Elastic.Clients.Elasticsearch.ReindexRequest Read(ref System.Tex
Dest = propDest.Value,
MaxDocs = propMaxDocs.Value,
Script = propScript.Value,
Size = propSize.Value,
Source = propSource.Value
};
}
Expand All @@ -101,7 +93,6 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
writer.WriteProperty(options, PropDest, value.Dest, null, null);
writer.WriteProperty(options, PropMaxDocs, value.MaxDocs, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue<long>(o, v));
writer.WriteProperty(options, PropScript, value.Script, null, null);
writer.WriteProperty(options, PropSize, value.Size, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue<long>(o, v));
writer.WriteProperty(options, PropSource, value.Source, null, null);
writer.WriteEndObject();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ internal ReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Script? Script { get; set; }
public long? Size { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -1074,12 +1073,6 @@ public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor Script(System.Acti
return this;
}

public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor Size(long? value)
{
Instance.Size = value;
return this;
}

/// <summary>
/// <para>
/// The source you are copying from.
Expand Down Expand Up @@ -1687,12 +1680,6 @@ public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor<TDocument> Script(
return this;
}

public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor<TDocument> Size(long? value)
{
Instance.Size = value;
return this;
}

/// <summary>
/// <para>
/// The source you are copying from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public sealed partial class SearchRequestParameters : Elastic.Transport.RequestP

/// <summary>
/// <para>
/// The default operator for the query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for the query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -458,7 +458,7 @@ internal SearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct

/// <summary>
/// <para>
/// The default operator for the query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for the query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -1136,7 +1136,7 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor CcsMinimizeRoundtri

/// <summary>
/// <para>
/// The default operator for the query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for the query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down Expand Up @@ -2892,7 +2892,7 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor<TDocument> CcsMinim

/// <summary>
/// <para>
/// The default operator for the query string query: <c>AND</c> or <c>OR</c>.
/// The default operator for the query string query: <c>and</c> or <c>or</c>.
/// This parameter can be used only when the <c>q</c> query string parameter is specified.
/// </para>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public sealed partial class TranslateResponseConverter : System.Text.Json.Serial
private static readonly System.Text.Json.JsonEncodedText PropSize = System.Text.Json.JsonEncodedText.Encode("size");
private static readonly System.Text.Json.JsonEncodedText PropSort = System.Text.Json.JsonEncodedText.Encode("sort");
private static readonly System.Text.Json.JsonEncodedText PropSource = System.Text.Json.JsonEncodedText.Encode("_source");
private static readonly System.Text.Json.JsonEncodedText PropTrackTotalHits = System.Text.Json.JsonEncodedText.Encode("track_total_hits");

public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
{
Expand All @@ -41,6 +42,7 @@ public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref Sys
LocalJsonValue<long?> propSize = default;
LocalJsonValue<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>?> propSort = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Core.Search.SourceConfig?> propSource = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Core.Search.TrackHits?> propTrackTotalHits = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
{
if (propAggregations.TryReadProperty(ref reader, options, PropAggregations, static System.Collections.Generic.IReadOnlyDictionary<string, Elastic.Clients.Elasticsearch.Aggregations.Aggregation>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue<string, Elastic.Clients.Elasticsearch.Aggregations.Aggregation>(o, null, null)))
Expand Down Expand Up @@ -73,6 +75,11 @@ public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref Sys
continue;
}

if (propTrackTotalHits.TryReadProperty(ref reader, options, PropTrackTotalHits, null))
{
continue;
}

if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip)
{
reader.SafeSkip();
Expand All @@ -90,7 +97,8 @@ public override Elastic.Clients.Elasticsearch.Sql.TranslateResponse Read(ref Sys
Query = propQuery.Value,
Size = propSize.Value,
Sort = propSort.Value,
Source = propSource.Value
Source = propSource.Value,
TrackTotalHits = propTrackTotalHits.Value
};
}

Expand All @@ -103,6 +111,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
writer.WriteProperty(options, PropSize, value.Size, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue<long>(o, v));
writer.WriteProperty(options, PropSort, value.Sort, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>? v) => w.WriteSingleOrManyCollectionValue<Elastic.Clients.Elasticsearch.SortOptions>(o, v, null));
writer.WriteProperty(options, PropSource, value.Source, null, null);
writer.WriteProperty(options, PropTrackTotalHits, value.TrackTotalHits, null, null);
writer.WriteEndObject();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ internal TranslateResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConst
public long? Size { get; set; }
public System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.SortOptions>? Sort { get; set; }
public Elastic.Clients.Elasticsearch.Core.Search.SourceConfig? Source { get; set; }
public Elastic.Clients.Elasticsearch.Core.Search.TrackHits? TrackTotalHits { get; set; }
}
Loading
Loading