From c3d7f4570ba684805d6f0f332d06b9cd52479ae5 Mon Sep 17 00:00:00 2001 From: bowenlan-amzn Date: Sun, 9 Jun 2024 11:06:20 -0700 Subject: [PATCH 1/4] add documentation for the new setting of cardinality aggregation dynamic pruning Signed-off-by: bowenlan-amzn --- .../configuring-opensearch/search-settings.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_install-and-configure/configuring-opensearch/search-settings.md b/_install-and-configure/configuring-opensearch/search-settings.md index f769516b33..d7285cdee4 100644 --- a/_install-and-configure/configuring-opensearch/search-settings.md +++ b/_install-and-configure/configuring-opensearch/search-settings.md @@ -37,6 +37,8 @@ OpenSearch supports the following search settings: - `search.max_aggregation_rewrite_filters` (Dynamic, integer): Determines the maximum number of rewrite filters allowed during aggregation. Set this value to `0` to disable the filter rewrite optimization for aggregations. +- `search.dynamic_pruning.cardinality_aggregation_threshold` (Dynamic, integer): Determines the threshold for applying dynamic pruning in cardinality aggregation. If a field’s cardinality exceeds this threshold, the aggregation will revert to the default method. + ## Point in Time settings For information about PIT settings, see [PIT settings]({{site.url}}{{site.baseurl}}/search-plugins/point-in-time-api/#pit-settings). From 62b348035b80d5e46cd5e5e4a1cb2c88696bd1e4 Mon Sep 17 00:00:00 2001 From: bowenlan-amzn Date: Mon, 10 Jun 2024 17:36:17 -0700 Subject: [PATCH 2/4] Update search-settings.md Signed-off-by: bowenlan-amzn --- .../configuring-opensearch/search-settings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_install-and-configure/configuring-opensearch/search-settings.md b/_install-and-configure/configuring-opensearch/search-settings.md index d7285cdee4..8d3f6258cd 100644 --- a/_install-and-configure/configuring-opensearch/search-settings.md +++ b/_install-and-configure/configuring-opensearch/search-settings.md @@ -37,7 +37,7 @@ OpenSearch supports the following search settings: - `search.max_aggregation_rewrite_filters` (Dynamic, integer): Determines the maximum number of rewrite filters allowed during aggregation. Set this value to `0` to disable the filter rewrite optimization for aggregations. -- `search.dynamic_pruning.cardinality_aggregation_threshold` (Dynamic, integer): Determines the threshold for applying dynamic pruning in cardinality aggregation. If a field’s cardinality exceeds this threshold, the aggregation will revert to the default method. +- `search.dynamic_pruning.cardinality_aggregation.max_allowed_cardinality` (Dynamic, integer): Determines the threshold for applying dynamic pruning in cardinality aggregation. If a field’s cardinality exceeds this threshold, the aggregation will revert to the default method. ## Point in Time settings From 3ad2cfcdfd13d5b4bc7028697e01ef1cef05d8c0 Mon Sep 17 00:00:00 2001 From: Melissa Vagi Date: Tue, 11 Jun 2024 11:08:51 -0600 Subject: [PATCH 3/4] Update _install-and-configure/configuring-opensearch/search-settings.md Signed-off-by: Melissa Vagi --- .../configuring-opensearch/search-settings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_install-and-configure/configuring-opensearch/search-settings.md b/_install-and-configure/configuring-opensearch/search-settings.md index 8d3f6258cd..e22625d311 100644 --- a/_install-and-configure/configuring-opensearch/search-settings.md +++ b/_install-and-configure/configuring-opensearch/search-settings.md @@ -37,7 +37,7 @@ OpenSearch supports the following search settings: - `search.max_aggregation_rewrite_filters` (Dynamic, integer): Determines the maximum number of rewrite filters allowed during aggregation. Set this value to `0` to disable the filter rewrite optimization for aggregations. -- `search.dynamic_pruning.cardinality_aggregation.max_allowed_cardinality` (Dynamic, integer): Determines the threshold for applying dynamic pruning in cardinality aggregation. If a field’s cardinality exceeds this threshold, the aggregation will revert to the default method. +- `search.dynamic_pruning.cardinality_aggregation.max_allowed_cardinality` (Dynamic, integer): Determines the threshold for applying dynamic pruning in cardinality aggregation. If a field’s cardinality exceeds this threshold, the aggregation reverts to the default method. ## Point in Time settings From ffc7edd93bd7d328dd97231a9ebc3e20a92db1a1 Mon Sep 17 00:00:00 2001 From: Melissa Vagi Date: Mon, 17 Jun 2024 11:07:04 -0600 Subject: [PATCH 4/4] Update search-settings.md Signed-off-by: Melissa Vagi --- .../configuring-opensearch/search-settings.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_install-and-configure/configuring-opensearch/search-settings.md b/_install-and-configure/configuring-opensearch/search-settings.md index e22625d311..c3c4337d01 100644 --- a/_install-and-configure/configuring-opensearch/search-settings.md +++ b/_install-and-configure/configuring-opensearch/search-settings.md @@ -35,9 +35,9 @@ OpenSearch supports the following search settings: - `search.highlight.term_vector_multi_value` (Static, Boolean): Specifies to highlight snippets across values of a multi-valued field. Default is `true`. -- `search.max_aggregation_rewrite_filters` (Dynamic, integer): Determines the maximum number of rewrite filters allowed during aggregation. Set this value to `0` to disable the filter rewrite optimization for aggregations. +- `search.max_aggregation_rewrite_filters` (Dynamic, integer): Determines the maximum number of rewrite filters allowed during aggregation. Set this value to `0` to disable the filter rewrite optimization for aggregations. This is an experimental feature and may change or be removed in future versions. -- `search.dynamic_pruning.cardinality_aggregation.max_allowed_cardinality` (Dynamic, integer): Determines the threshold for applying dynamic pruning in cardinality aggregation. If a field’s cardinality exceeds this threshold, the aggregation reverts to the default method. +- `search.dynamic_pruning.cardinality_aggregation.max_allowed_cardinality` (Dynamic, integer): Determines the threshold for applying dynamic pruning in cardinality aggregation. If a field’s cardinality exceeds this threshold, the aggregation reverts to the default method. This is an experimental feature and may change or be removed in future versions. ## Point in Time settings