0

I use Elasticsearch with version 1.7 (I know it is very old). I got TooManyClauses error and I wanted to increase the default value of max_clause_count. (default 1024)

Unfortunately, I couldn't set the configuration for elasticsearch. I tried these 2 settings:

1- "indices.query.bool.max_clause_count=2048"
2- "index.query.bool.max_clause_count=2048"

Do you have any ideas? How can I change the default value for max_clause_count?

sbb
  • 529
  • 3
  • 25
  • The configuration that you tried should work (I hope you are not using the double quotes) after you add them in elasticsearch.yml file. Post that, Please restart the nodes (any change in the config file needs a restart). – Amit kumar Jun 19 '20 at 13:39
  • I am using a docker image and adding this configuration as environment variables. So, I don't have the elasticsearch.yml due to the docker image. I just did a restart but it didn't work for me. Do you have other suggestions? – sbb Jun 19 '20 at 14:22
  • `environment:` `indices.query.bool.max_clause_count: 2048` This worked for me. Are you adding the same in your docker-compose.yml ? – Amit kumar Jun 19 '20 at 14:56
  • I am setting the environments in container definition file for ECS. I am deploying elastic search to an AWS cluster. I am defining the parameters like here. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definition_environment Unfortunately it's still not working. – sbb Jun 19 '20 at 15:49
  • When I check the settings with that pah `/_cluster/settings/?include_defaults`, I still see 1024 which is the default value. – sbb Jun 19 '20 at 21:35

0 Answers0