# Setting "max\_determinized\_states" when using \_source to filter fields during match\_all

**URL:** https://discuss.elastic.co/t/setting-max-determinized-states-when-using-source-to-filter-fields-during-match-all/201956
**Category:** Elasticsearch
**Created:** [October 2, 2019, 1:17pm UTC](https://discuss.elastic.co/t/setting-max-determinized-states-when-using-source-to-filter-fields-during-match-all/201956 "2019-10-02T13:17:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![doruchiulan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/doruchiulan/32/55246_2.png) [@doruchiulan](https://discuss.elastic.co/u/doruchiulan)
#### Post date: [October 2, 2019, 1:17pm UTC](https://discuss.elastic.co/t/setting-max-determinized-states-when-using-source-to-filter-fields-during-match-all/201956/1 "2019-10-02T13:17:43Z")

</div>

I have a long list of fields that I want to include in my results during a match\_all query (1600+) This triggers the following error:

```
{

* "error": {
  * "root_cause": [
    * {
      * "type": "too_complex_to_determinize_exception",
      * "reason": "too_complex_to_determinize_exception: Determinizing automaton with 194115 states and 195742 transitions would result in more than 10000 states."}],
  * "type": "search_phase_execution_exception",
  * "reason": "all shards failed",
  * "phase": "query",
  * "grouped": true,
  * "failed_shards": [
    * {
      * "shard": 2,
      * "index": "qa-contracts",
      * "node": "Cm-PbvYVSfypTszrbJIQKQ",
      * "reason": {
        * "type": "too_complex_to_determinize_exception",
        * "reason": "too_complex_to_determinize_exception: Determinizing automaton with 194115 states and 195742 transitions would result in more than 10000 states."}}]},
* "status": 500

}

```

My query:

```
{
  "query": {
    "match_all": {
    }
  },
  "_source": [
    "BranchCode",
    "BranchInfo.A2DUuid",
    .... 1600 fields here
    "id"
  ]
}

```

Is it possible to set "max\_determinized\_states" to more than 10000 while executing this query ?

---

<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: [October 30, 2019, 1:17pm UTC](https://discuss.elastic.co/t/setting-max-determinized-states-when-using-source-to-filter-fields-during-match-all/201956/2 "2019-10-30T13:17:45Z")

</div>

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