Search API Filters - Limits - Arrays

Hi :wave:

Documentation (Search API Filters) states that there are the following limits when filtering a search query:

  • (A) max 32 filters
  • (B) arrays can't contain more than 1024 values

I have a use case where I need to divide a certain value filter into multiple filter clauses because of (B)

"any": [
            {
                "groups":  [ "v1", "v2","v3", ..., "v1024-MAX ! ! "]
            },
            {
                "groups":  [ "v1024", "v1024","v1024", ..., "v2048-MAX ! ! "]
            },
            {
                "groups":  [ ...]
            },
            // ...
        ]

However, with time and bigger customers, and because of new and different filters perhaps, I am suspecting we could potentially reach the limit for (A) 32 filters.

Question

  • Is there the possibility to configure bigger limits either for (A) or (B) ?
  • If not, would there be in the future ?
  • Any other solution if none of the above ?

Thanks in advance.

hey @Gerardo_Zenobi

Unfortunately these limits cannot be increased (limits doc) and unfortunately there isn't anything on the roadmap that will increase this limit.

I will chat with our team to see if this could be configurable. I suspect this wont be simple with Elasticsearch having its own limits around max clauses.

Joe

Thanks @joemcelroy

I will chat with our team to see if this could be configurable. I suspect this wont be simple with Elasticsearch having its own limits around max clauses.

Please keep me posted :pray:

Gerardo.

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