<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-2271 Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2271 Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server</link><pubDate>Tue, 07 Nov 2023 18:25:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Current Revision posted to Appian Knowledge Base by pauline.delacruz on 11/7/2023 6:25:45 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;Customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/error_5F00_accesing_5F00_desinger_5F00_APS_2D00_12_2D00_10_2D00_2023.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;li&gt;Potential increase in Search Server CPU usage&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: design objects, search server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-2271 Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/47</link><pubDate>Fri, 03 Nov 2023 21:12:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 47 posted to Appian Knowledge Base by pauline.delacruz on 11/3/2023 9:12:55 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;Customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/error_5F00_accesing_5F00_desinger_5F00_APS_2D00_12_2D00_10_2D00_2023.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: design objects, search server, infrastructure&lt;/div&gt;
</description></item><item><title>KB-2271 Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/48</link><pubDate>Fri, 03 Nov 2023 21:12:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 48 posted to Appian Knowledge Base by pauline.delacruz on 11/3/2023 9:12:55 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;Customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/error_5F00_accesing_5F00_desinger_5F00_APS_2D00_12_2D00_10_2D00_2023.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: design objects, search server, infrastructure&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/46</link><pubDate>Fri, 03 Nov 2023 21:03:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 46 posted to Appian Knowledge Base by pauline.delacruz on 11/3/2023 9:03:17 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;Customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/error_5F00_accesing_5F00_desinger_5F00_APS_2D00_12_2D00_10_2D00_2023.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: design objects, search server, infrastructure&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/45</link><pubDate>Tue, 24 Oct 2023 17:59:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 45 posted to Appian Knowledge Base by Yiyi Tao on 10/24/2023 5:59:32 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/error_5F00_accesing_5F00_desinger_5F00_APS_2D00_12_2D00_10_2D00_2023.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/44</link><pubDate>Tue, 24 Oct 2023 17:59:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 44 posted to Appian Knowledge Base by Yiyi Tao on 10/24/2023 5:59:17 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/error_5F00_accesing_5F00_desinger_5F00_APS_2D00_12_2D00_10_2D00_2023.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/43</link><pubDate>Tue, 24 Oct 2023 17:54:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 43 posted to Appian Knowledge Base by pauline.delacruz on 10/24/2023 5:54:36 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698170034511v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/42</link><pubDate>Tue, 24 Oct 2023 17:53:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 42 posted to Appian Knowledge Base by pauline.delacruz on 10/24/2023 5:53:49 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698169980618v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/41</link><pubDate>Tue, 24 Oct 2023 17:52:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 41 posted to Appian Knowledge Base by pauline.delacruz on 10/24/2023 5:52:59 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698099689163v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/40</link><pubDate>Tue, 24 Oct 2023 17:52:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 40 posted to Appian Knowledge Base by pauline.delacruz on 10/24/2023 5:52:40 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698099689163v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/39</link><pubDate>Tue, 24 Oct 2023 17:52:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 39 posted to Appian Knowledge Base by pauline.delacruz on 10/24/2023 5:52:22 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698099689163v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/38</link><pubDate>Tue, 24 Oct 2023 17:52:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 38 posted to Appian Knowledge Base by Yiyi Tao on 10/24/2023 5:52:02 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698099689163v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/37</link><pubDate>Mon, 23 Oct 2023 22:23:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 37 posted to Appian Knowledge Base by Yiyi Tao on 10/23/2023 10:23:23 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698099689163v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/36</link><pubDate>Mon, 23 Oct 2023 22:23:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 36 posted to Appian Knowledge Base by Yiyi Tao on 10/23/2023 10:23:07 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698099689163v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/35</link><pubDate>Mon, 23 Oct 2023 22:22:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 35 posted to Appian Knowledge Base by Yiyi Tao on 10/23/2023 10:22:23 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;During an attempt to&amp;nbsp;open an application, the&amp;nbsp;following system error is displayed on the front end:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698099689163v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/34</link><pubDate>Mon, 23 Oct 2023 22:05:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 34 posted to Appian Knowledge Base by Yiyi Tao on 10/23/2023 10:05:29 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value &lt;code&gt;[xxxxxxx]&lt;/code&gt; shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/33</link><pubDate>Mon, 23 Oct 2023 22:04:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 33 posted to Appian Knowledge Base by Yiyi Tao on 10/23/2023 10:04:44 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, which should be higher than the value [xxxxxxx] shown in the error. Using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/32</link><pubDate>Mon, 23 Oct 2023 16:59:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 32 posted to Appian Knowledge Base by Yiyi Tao on 10/23/2023 4:59:22 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/31</link><pubDate>Mon, 23 Oct 2023 16:59:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 31 posted to Appian Knowledge Base by Yiyi Tao on 10/23/2023 4:59:03 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/30</link><pubDate>Mon, 23 Oct 2023 16:58:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 30 posted to Appian Knowledge Base by Yiyi Tao on 10/23/2023 4:58:14 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;&lt;code&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/code&gt;.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9296] KB-XXXX Number of terms exceeded the allowed maximum of designer-objects-ia in Search Server</title><link>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server/revision/29</link><pubDate>Mon, 23 Oct 2023 16:57:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b03df6-26ba-48f3-9f76-707ceb6a693d</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3396/kb-2271-number-of-terms-exceeded-the-allowed-maximum-of-designer-objects-ia-in-search-server#comments</comments><description>Revision 29 posted to Appian Knowledge Base by Yiyi Tao on 10/23/2023 4:57:45 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;On occasion, customers that have a large number of objects might see the following error in &lt;strong&gt;search-server.log&lt;/strong&gt; in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/search-server/&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;[&lt;span&gt;YYYY-MM-DDTHH:MM:SS.sssZ&lt;/span&gt;][DEBUG][org.elasticsearch.action.search.TransportSearchAction] [%node_name] All shards failed for phase: [query]
org.elasticsearch.index.query.QueryShardException: failed to create query: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.
at org.elasticsearch.index.query.QueryShardContext.toQuery(QueryShardContext.java:369) ~[elasticsearch-7.9.1.jar:7.9.1]&lt;br /&gt;...&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: The number of terms [xxxxxxx] used in the Terms Query request has exceeded the allowed maximum of [65536]. This maximum can be set by changing the [index.max_terms_count] index level setting.&lt;/pre&gt;
&lt;p&gt;Associated symptoms include but are not limited to:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unable to look for dependents and precedents for certain objects.&lt;/li&gt;
&lt;li&gt;Unable to look up certain objects with Quick Search Option.&lt;/li&gt;
&lt;li&gt;Unable to open certain applications.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The number of terms used in&amp;nbsp;a term query has exceeded the allowed&amp;nbsp;maximum of designer-objects-ia index in the Search Server, which is defined by&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt;. By default, the value of&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; is 65536. See&amp;nbsp;the Elasticsearch &lt;a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#index-max-terms-count"&gt;documentation&lt;/a&gt; for more information.&lt;/p&gt;
&lt;p&gt;In Appian, the number of dependents/precedents that an object has equated to the number of terms. This does not necessarily mean that the customer has an object that has over 65536 dependents/precedents.&amp;nbsp;&lt;span&gt;The likelihood of reaching the term limit increases as the number of design objects and their dependencies grows.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Follow the steps below to &lt;span&gt;update&amp;nbsp;the&amp;nbsp;&lt;code&gt;index.max_terms_count&lt;/code&gt; setting for the designer objects index.&amp;nbsp;This operation will not cause downtime nor require Appian components to be restarted. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;For HA sites, the steps only need to be run on one of the nodes as the setting&amp;nbsp;will be automatically applied to the other nodes.&amp;nbsp;This setting will not be overridden on&amp;nbsp;Search Server or App Server restarts.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Authenticate with Search Server by running the following command on the servers. Replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the absolute path of your own &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;:&amp;nbsp;&lt;br /&gt;
&lt;pre&gt;APIKEY=$(awk &amp;#39;/^conf.data.search-server.restclient.apiKey=/ { match($0, /conf.data.search-server.restclient.apiKey=(.*)/, arr); print arr[1] }&amp;#39; &amp;lt;APPIAN_HOME&amp;gt;/conf/custom.properties); AUTHHEADER=&amp;quot;Authorization: ApiKey $(echo -n $APIKEY | base64 -w0)&amp;quot;; alias curl=&amp;#39;curl --header &amp;quot;$AUTHHEADER&amp;quot;&amp;#39;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Confirm the current value of&amp;nbsp;&lt;span&gt;index.max_terms_count (65536 is the default value):&amp;nbsp;&lt;/span&gt;
&lt;pre&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/pre&gt;
&lt;br /&gt; &lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697740489938v1.png" /&gt;&lt;/li&gt;
&lt;li&gt;If the output is expected, proceed to run the following commands to update the setting to your desired value, using 100000 as an example:&lt;br /&gt;
&lt;pre&gt;curl -X PUT localhost:9200/designer-objects-ia/_settings?pretty -H &amp;#39;Content-Type: application/json&amp;#39; -d&amp;#39;&lt;br /&gt;{&lt;br /&gt; &amp;quot;index&amp;quot; : {&lt;br /&gt; &amp;quot;max_terms_count&amp;quot; : &amp;quot;100000&amp;quot; &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&amp;#39;&lt;/pre&gt;
The output will show&lt;code&gt;&amp;nbsp;{&amp;quot;acknowledged&amp;quot; : true}&lt;/code&gt; if it succeeded.&lt;/li&gt;
&lt;li&gt;Verify that the setting change took effect by running the following command. The setting should have the new value:&lt;br /&gt;&lt;code&gt;curl &amp;#39;localhost:9200/designer-objects-ia/_settings?pretty&amp;#39;| grep max_terms_count&lt;/code&gt;.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1697922514469v1.png" /&gt;&lt;strong&gt;&lt;br /&gt;Note:&lt;/strong&gt; If the site is HA, check on multiple nodes to be safe, be sure to run the authentication steps in step #1 on the other nodes first.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Once the steps are completed, please retry the erroring action that was throwing this error&amp;nbsp;to confirm if it is resolved.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>