# Determinizing ... would result in more than 10000 states

**URL:** <https://discuss.elastic.co/t/determinizing-would-result-in-more-than-10000-states/140718>\
**Category:** Elasticsearch\
**Created:** [July 19, 2018, 12:07pm UTC](https://discuss.elastic.co/t/determinizing-would-result-in-more-than-10000-states/140718 "2018-07-19T12:07:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Destroy666](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@Destroy666](https://discuss.elastic.co/u/Destroy666)\
**Post date:** [July 19, 2018, 12:07pm UTC](https://discuss.elastic.co/t/determinizing-would-result-in-more-than-10000-states/140718/1 "2018-07-19T12:07:13Z")

</div>

[https://pastebin.com/034F5M01](https://pastebin.com/034F5M01)

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?

---

<div class="post-metadata">

**Author:** ![Destroy666](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@Destroy666](https://discuss.elastic.co/u/Destroy666)\
**Post date:** [July 20, 2018, 12:31pm UTC](https://discuss.elastic.co/t/determinizing-would-result-in-more-than-10000-states/140718/2 "2018-07-20T12:31:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 17, 2018, 12:32pm UTC](https://discuss.elastic.co/t/determinizing-would-result-in-more-than-10000-states/140718/3 "2018-08-17T12:32:01Z")

</div>

Closed on August 17, 2018, 12:32pm UTC

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