Skip to content

Change mapping limit type from int -> long #8209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2024
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 @@ -33,7 +33,7 @@ public sealed partial class MappingLimitSettingsDepth
/// <para>The maximum depth for a field, which is measured as the number of inner objects. For instance, if all fields are defined<br/>at the root object level, then the depth is 1. If there is one object mapping, then the depth is 2, etc.</para>
/// </summary>
[JsonInclude, JsonPropertyName("limit")]
public int? Limit { get; set; }
public long? Limit { get; set; }
}

public sealed partial class MappingLimitSettingsDepthDescriptor : SerializableDescriptor<MappingLimitSettingsDepthDescriptor>
Expand All @@ -44,12 +44,12 @@ public MappingLimitSettingsDepthDescriptor() : base()
{
}

private int? LimitValue { get; set; }
private long? LimitValue { get; set; }

/// <summary>
/// <para>The maximum depth for a field, which is measured as the number of inner objects. For instance, if all fields are defined<br/>at the root object level, then the depth is 1. If there is one object mapping, then the depth is 2, etc.</para>
/// </summary>
public MappingLimitSettingsDepthDescriptor Limit(int? limit)
public MappingLimitSettingsDepthDescriptor Limit(long? limit)
{
LimitValue = limit;
return Self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class MappingLimitSettingsDimensionFields
/// <para>[preview] This functionality is in technical preview and may be changed or removed in a future release.<br/>Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.</para>
/// </summary>
[JsonInclude, JsonPropertyName("limit")]
public int? Limit { get; set; }
public long? Limit { get; set; }
}

public sealed partial class MappingLimitSettingsDimensionFieldsDescriptor : SerializableDescriptor<MappingLimitSettingsDimensionFieldsDescriptor>
Expand All @@ -44,12 +44,12 @@ public MappingLimitSettingsDimensionFieldsDescriptor() : base()
{
}

private int? LimitValue { get; set; }
private long? LimitValue { get; set; }

/// <summary>
/// <para>[preview] This functionality is in technical preview and may be changed or removed in a future release.<br/>Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.</para>
/// </summary>
public MappingLimitSettingsDimensionFieldsDescriptor Limit(int? limit)
public MappingLimitSettingsDimensionFieldsDescriptor Limit(long? limit)
{
LimitValue = limit;
return Self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class MappingLimitSettingsNestedFields
/// <para>The maximum number of distinct nested mappings in an index. The nested type should only be used in special cases, when<br/>arrays of objects need to be queried independently of each other. To safeguard against poorly designed mappings, this<br/>setting limits the number of unique nested types per index.</para>
/// </summary>
[JsonInclude, JsonPropertyName("limit")]
public int? Limit { get; set; }
public long? Limit { get; set; }
}

public sealed partial class MappingLimitSettingsNestedFieldsDescriptor : SerializableDescriptor<MappingLimitSettingsNestedFieldsDescriptor>
Expand All @@ -44,12 +44,12 @@ public MappingLimitSettingsNestedFieldsDescriptor() : base()
{
}

private int? LimitValue { get; set; }
private long? LimitValue { get; set; }

/// <summary>
/// <para>The maximum number of distinct nested mappings in an index. The nested type should only be used in special cases, when<br/>arrays of objects need to be queried independently of each other. To safeguard against poorly designed mappings, this<br/>setting limits the number of unique nested types per index.</para>
/// </summary>
public MappingLimitSettingsNestedFieldsDescriptor Limit(int? limit)
public MappingLimitSettingsNestedFieldsDescriptor Limit(long? limit)
{
LimitValue = limit;
return Self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class MappingLimitSettingsNestedObjects
/// <para>The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps<br/>to prevent out of memory errors when a document contains too many nested objects.</para>
/// </summary>
[JsonInclude, JsonPropertyName("limit")]
public int? Limit { get; set; }
public long? Limit { get; set; }
}

public sealed partial class MappingLimitSettingsNestedObjectsDescriptor : SerializableDescriptor<MappingLimitSettingsNestedObjectsDescriptor>
Expand All @@ -44,12 +44,12 @@ public MappingLimitSettingsNestedObjectsDescriptor() : base()
{
}

private int? LimitValue { get; set; }
private long? LimitValue { get; set; }

/// <summary>
/// <para>The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps<br/>to prevent out of memory errors when a document contains too many nested objects.</para>
/// </summary>
public MappingLimitSettingsNestedObjectsDescriptor Limit(int? limit)
public MappingLimitSettingsNestedObjectsDescriptor Limit(long? limit)
{
LimitValue = limit;
return Self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class MappingLimitSettingsTotalFields
/// <para>The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit.<br/>The limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance<br/>degradations and memory issues, especially in clusters with a high load or few resources.</para>
/// </summary>
[JsonInclude, JsonPropertyName("limit")]
public int? Limit { get; set; }
public long? Limit { get; set; }
}

public sealed partial class MappingLimitSettingsTotalFieldsDescriptor : SerializableDescriptor<MappingLimitSettingsTotalFieldsDescriptor>
Expand All @@ -44,12 +44,12 @@ public MappingLimitSettingsTotalFieldsDescriptor() : base()
{
}

private int? LimitValue { get; set; }
private long? LimitValue { get; set; }

/// <summary>
/// <para>The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit.<br/>The limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance<br/>degradations and memory issues, especially in clusters with a high load or few resources.</para>
/// </summary>
public MappingLimitSettingsTotalFieldsDescriptor Limit(int? limit)
public MappingLimitSettingsTotalFieldsDescriptor Limit(long? limit)
{
LimitValue = limit;
return Self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class MappingLimitSettingsDepth
/// <para>The maximum depth for a field, which is measured as the number of inner objects. For instance, if all fields are defined<br/>at the root object level, then the depth is 1. If there is one object mapping, then the depth is 2, etc.</para>
/// </summary>
[JsonInclude, JsonPropertyName("limit")]
public int? Limit { get; set; }
public long? Limit { get; set; }
}

public sealed partial class MappingLimitSettingsDepthDescriptor : SerializableDescriptor<MappingLimitSettingsDepthDescriptor>
Expand All @@ -44,12 +44,12 @@ public MappingLimitSettingsDepthDescriptor() : base()
{
}

private int? LimitValue { get; set; }
private long? LimitValue { get; set; }

/// <summary>
/// <para>The maximum depth for a field, which is measured as the number of inner objects. For instance, if all fields are defined<br/>at the root object level, then the depth is 1. If there is one object mapping, then the depth is 2, etc.</para>
/// </summary>
public MappingLimitSettingsDepthDescriptor Limit(int? limit)
public MappingLimitSettingsDepthDescriptor Limit(long? limit)
{
LimitValue = limit;
return Self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class MappingLimitSettingsDimensionFields
/// <para>[preview] This functionality is in technical preview and may be changed or removed in a future release.<br/>Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.</para>
/// </summary>
[JsonInclude, JsonPropertyName("limit")]
public int? Limit { get; set; }
public long? Limit { get; set; }
}

public sealed partial class MappingLimitSettingsDimensionFieldsDescriptor : SerializableDescriptor<MappingLimitSettingsDimensionFieldsDescriptor>
Expand All @@ -44,12 +44,12 @@ public MappingLimitSettingsDimensionFieldsDescriptor() : base()
{
}

private int? LimitValue { get; set; }
private long? LimitValue { get; set; }

/// <summary>
/// <para>[preview] This functionality is in technical preview and may be changed or removed in a future release.<br/>Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.</para>
/// </summary>
public MappingLimitSettingsDimensionFieldsDescriptor Limit(int? limit)
public MappingLimitSettingsDimensionFieldsDescriptor Limit(long? limit)
{
LimitValue = limit;
return Self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class MappingLimitSettingsNestedFields
/// <para>The maximum number of distinct nested mappings in an index. The nested type should only be used in special cases, when<br/>arrays of objects need to be queried independently of each other. To safeguard against poorly designed mappings, this<br/>setting limits the number of unique nested types per index.</para>
/// </summary>
[JsonInclude, JsonPropertyName("limit")]
public int? Limit { get; set; }
public long? Limit { get; set; }
}

public sealed partial class MappingLimitSettingsNestedFieldsDescriptor : SerializableDescriptor<MappingLimitSettingsNestedFieldsDescriptor>
Expand All @@ -44,12 +44,12 @@ public MappingLimitSettingsNestedFieldsDescriptor() : base()
{
}

private int? LimitValue { get; set; }
private long? LimitValue { get; set; }

/// <summary>
/// <para>The maximum number of distinct nested mappings in an index. The nested type should only be used in special cases, when<br/>arrays of objects need to be queried independently of each other. To safeguard against poorly designed mappings, this<br/>setting limits the number of unique nested types per index.</para>
/// </summary>
public MappingLimitSettingsNestedFieldsDescriptor Limit(int? limit)
public MappingLimitSettingsNestedFieldsDescriptor Limit(long? limit)
{
LimitValue = limit;
return Self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class MappingLimitSettingsNestedObjects
/// <para>The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps<br/>to prevent out of memory errors when a document contains too many nested objects.</para>
/// </summary>
[JsonInclude, JsonPropertyName("limit")]
public int? Limit { get; set; }
public long? Limit { get; set; }
}

public sealed partial class MappingLimitSettingsNestedObjectsDescriptor : SerializableDescriptor<MappingLimitSettingsNestedObjectsDescriptor>
Expand All @@ -44,12 +44,12 @@ public MappingLimitSettingsNestedObjectsDescriptor() : base()
{
}

private int? LimitValue { get; set; }
private long? LimitValue { get; set; }

/// <summary>
/// <para>The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps<br/>to prevent out of memory errors when a document contains too many nested objects.</para>
/// </summary>
public MappingLimitSettingsNestedObjectsDescriptor Limit(int? limit)
public MappingLimitSettingsNestedObjectsDescriptor Limit(long? limit)
{
LimitValue = limit;
return Self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class MappingLimitSettingsTotalFields
/// <para>The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit.<br/>The limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance<br/>degradations and memory issues, especially in clusters with a high load or few resources.</para>
/// </summary>
[JsonInclude, JsonPropertyName("limit")]
public int? Limit { get; set; }
public long? Limit { get; set; }
}

public sealed partial class MappingLimitSettingsTotalFieldsDescriptor : SerializableDescriptor<MappingLimitSettingsTotalFieldsDescriptor>
Expand All @@ -44,12 +44,12 @@ public MappingLimitSettingsTotalFieldsDescriptor() : base()
{
}

private int? LimitValue { get; set; }
private long? LimitValue { get; set; }

/// <summary>
/// <para>The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit.<br/>The limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance<br/>degradations and memory issues, especially in clusters with a high load or few resources.</para>
/// </summary>
public MappingLimitSettingsTotalFieldsDescriptor Limit(int? limit)
public MappingLimitSettingsTotalFieldsDescriptor Limit(long? limit)
{
LimitValue = limit;
return Self;
Expand Down
Loading