Determinizing ... would result in more than 10000 states

I'm getting this error when trying to do an aggregation based on some IDs in 5.6.x, it seems to appear only sometimes. Could anyone explain what it means and what could be done to fix it?

So from what I see the pattern string is too long (because it worked with shorter IDs and size of 10000 that didn't change) and the error is very confusing - how can I get around it other than splitting into several aggregations or indexing a different unique field?

EDIT: ok, the PHP library I used confused me, you can just pass array of strings rather than a huge or regex. Problem fixed.

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