From 305aef5f516778b12f949ba336d28f26d6d58b6f Mon Sep 17 00:00:00 2001 From: Ray Offiah <77050471+RayOffiah@users.noreply.github.com> Date: Fri, 9 Oct 2026 16:52:15 +0100 Subject: [PATCH] Revert "Merge pull request #4211" This reverts commit 90b2abcf05157d0bf85f75a35e2dfc916ee97e95. --- ...advanced-settings-bleveMaxClauseCount.adoc | 8 ++--- ...dvanced-settings-bleveMaxResultWindow.adoc | 9 ++--- ...-advanced-settings-maxReplicasAllowed.adoc | 4 +-- modules/fts/pages/fts-cluster-options.adoc | 33 ------------------- .../partials/get-cluster-level-options.adoc | 12 ------- 5 files changed, 6 insertions(+), 60 deletions(-) delete mode 100644 modules/fts/partials/get-cluster-level-options.adoc diff --git a/modules/fts/pages/fts-advanced-settings-bleveMaxClauseCount.adoc b/modules/fts/pages/fts-advanced-settings-bleveMaxClauseCount.adoc index 935594fe83..5a3ddda970 100644 --- a/modules/fts/pages/fts-advanced-settings-bleveMaxClauseCount.adoc +++ b/modules/fts/pages/fts-advanced-settings-bleveMaxClauseCount.adoc @@ -6,9 +6,7 @@ Using this setting, users can restrict resource utilization, especially the memo The default value of the `bleveMaxClauseCount` setting is *1024*. -The default limit might not be sufficient for queries like wildcard, regular expression, prefix, disjuncts, fuzzy, etc. -Users can fix the issue by specifying a higher value for the `bleveMaxClauseCount` setting. -However, users must check the query patterns to make them more efficient and well-scoped. +The default limit might not be sufficient for queries like wildcard, regex, prefix, disjuncts, fuzzy, etc. So, users can fix the issue by specifying a higher value for the `bleveMaxClauseCount` setting. However, users must check the query patterns to make them more efficient and well-scoped. == Example @@ -17,6 +15,4 @@ However, users must check the query patterns to make them more efficient and wel curl -XPUT -H "Content-type:application/json" http://username:password@:8094/api/managerOptions \-d '{ "bleveMaxClauseCount": "10000" } ----- - -include::partial$get-cluster-level-options.adoc[] \ No newline at end of file +---- \ No newline at end of file diff --git a/modules/fts/pages/fts-advanced-settings-bleveMaxResultWindow.adoc b/modules/fts/pages/fts-advanced-settings-bleveMaxResultWindow.adoc index f0466897ef..8e65b4128e 100644 --- a/modules/fts/pages/fts-advanced-settings-bleveMaxResultWindow.adoc +++ b/modules/fts/pages/fts-advanced-settings-bleveMaxResultWindow.adoc @@ -1,9 +1,8 @@ = bleveMaxResultWindow -The default value of the `bleveMaxResultWindow` setting is *10000*. -However, users can change this value if they want to view more records in the result. +The default value of the `bleveMaxResultWindow` setting is *10000*. However, users can change this value if they want to view more records in the result. -The `bleveMaxResultWindow` setting controls the maximum number of results a query can obtain, which helps limit the max results, thereby limiting the resource usage. +The `bleveMaxResultWindow` setting controls the maximum number of results a query can obtain, which helps limit the max results, thereby limiting the resource usage. It may also increase. == Example @@ -12,6 +11,4 @@ The `bleveMaxResultWindow` setting controls the maximum number of results a quer curl -XPUT -H "Content-type:application/json" http://username:password@:8094/api/managerOptions \-d '{ "bleveMaxResultWindow": "10000" } ----- - -include::partial$get-cluster-level-options.adoc[] \ No newline at end of file +---- \ No newline at end of file diff --git a/modules/fts/pages/fts-advanced-settings-maxReplicasAllowed.adoc b/modules/fts/pages/fts-advanced-settings-maxReplicasAllowed.adoc index dc4a7ddcfc..0159539992 100644 --- a/modules/fts/pages/fts-advanced-settings-maxReplicasAllowed.adoc +++ b/modules/fts/pages/fts-advanced-settings-maxReplicasAllowed.adoc @@ -11,6 +11,4 @@ The default limit value of this is *3*. curl -XPUT -H "Content-type:application/json" http://username:password@:8094/api/managerOptions \-d '{ "maxReplicasAllowed": "2" } ----- - -include::partial$get-cluster-level-options.adoc[] \ No newline at end of file +---- \ No newline at end of file diff --git a/modules/fts/pages/fts-cluster-options.adoc b/modules/fts/pages/fts-cluster-options.adoc index 0ce1d754bb..c3f5b63696 100644 --- a/modules/fts/pages/fts-cluster-options.adoc +++ b/modules/fts/pages/fts-cluster-options.adoc @@ -2,8 +2,6 @@ The following operations are for setting cluster-level options. -== Setting Cluster Level Options - * xref:fts-advanced-settings-bleveMaxResultWindow.adoc[bleveMaxResultWindow] * xref:fts-advanced-settings-bleveMaxClauseCount.adoc[bleveMaxClauseCount] * xref:fts-advanced-settings-maxFeedsPerDCPAgent.adoc[maxFeedsPerDCPAgent] @@ -14,34 +12,3 @@ The following operations are for setting cluster-level options. * xref:fts-advanced-settings-maxReplicasAllowed.adoc[maxReplicasAllowed] * xref:fts-advanced-settings-slowQueryLogTimeout.adoc[slowQueryLogTimeout] * xref:fts-advanced-settings-CBFT-ENV-OPTIONS.adoc[CBFT_ENV_OPTIONS] - -[#getting-cluster-level-options] -== Getting Cluster Level Options - -You can retrieve the current cluster settings for the following options: - -* `bleveMaxResultWindow` -* `bleveMaxClauseCount` -* `maxReplicasAllowed` - -Use the following CURL command to retrieve the parameters. - -include::partial$get-cluster-level-options.adoc[tag=source-get-cluster-options] - -This returns a JSON object containing the option parameters: - -[source,json] ----- -{ - "status": "ok", - "maxReplicasAllowed": 3, - "bucketTypesAllowed": "membase:ephemeral", - "collectionsSupport": true, - "bleveMaxResultWindow": 10000, - "bleveMaxClauseCount": 10000, - "deploymentModel": "default", - "scopedIndexesSupport": true -} ----- - - diff --git a/modules/fts/partials/get-cluster-level-options.adoc b/modules/fts/partials/get-cluster-level-options.adoc deleted file mode 100644 index 876ec043fb..0000000000 --- a/modules/fts/partials/get-cluster-level-options.adoc +++ /dev/null @@ -1,12 +0,0 @@ -[NOTE] -==== -Use the following CURL command to retrieve the current setting for this option: - -// tag::source-get-cluster-options[] -[source,shell, subs="+quotes"] ----- -curl -u : https://##:18094/api/conciseOptions ----- -// end::source-get-cluster-options[] - -==== \ No newline at end of file