Too many clauses when indexing an attachment field

I'm running Elasticsearch 2.4 for about 250 documents.

Most of those documents have attachments, and hence I am using a field called 'field_attachment_base64' with type 'attachment' (mapper plugin). This field contains the full-text content of those attachments in base64 format.

With the default,

index.query.bool.max_clause_count = 1024

, I hit the error - 'Too many clauses'.

When I increase the value to 10240, I don't see that error anymore. Are there better alternatives to the 'Too many clauses' issue?

Here is the field with full-text content of attachments in base64 format -

 "field_attachment_base64" : {
                "type" : "attachment",
                "fields" : {
                  "content" : {
                    "type" : "string",
                    "store" : true
                  },
                  "author" : {
                    "type" : "string"
                  },
                  "title" : {
                    "type" : "string"
                  },
                  "name" : {
                    "type" : "string"
                  },
                  "date" : {
                    "type" : "date",
                    "format" : "strict_date_optional_time||epoch_millis"
                  },
                  "keywords" : {
                    "type" : "string"
                  },
                  "content_type" : {
                    "type" : "string"
                  },
                  "content_length" : {
                    "type" : "integer"
                  },
                  "language" : {
                    "type" : "string"
                  }
                }
              },

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.