In this case you should use indices.query.bool.max_clause_count instead. This setting is not dynamic and you should be very careful in using it. This limit there for the reason and you should try to tweak your query first instead of tweaking the query. For more information see https://www.elastic.co/guide/en/elasticsearch/reference/6.7/search-settings.html
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.