# Query\_string query length limit

**URL:** https://discuss.elastic.co/t/query-string-query-length-limit/286095
**Category:** Elasticsearch
**Created:** [October 7, 2021, 6:55am UTC](https://discuss.elastic.co/t/query-string-query-length-limit/286095 "2021-10-07T06:55:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lc\_l](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lc_l/32/95537_2.png) [@lc\_l](https://discuss.elastic.co/u/lc_l)
#### Post date: [October 7, 2021, 6:55am UTC](https://discuss.elastic.co/t/query-string-query-length-limit/286095/1 "2021-10-07T06:55:35Z")

</div>

Hi , I've seen an old post of similar question [Query string length limit](https://discuss.elastic.co/t/query-string-length-limit/16972)  
and the answer "max\_clause\_count" seems to belong to DSL ?  
But what I concern is the exact character count in query.query\_string.query

```auto
{
  "query": {
    "query_string": {
      "query": "(new york city) OR (big apple)",
      "default_field": "content"
    }
  }
}

```

Is there any setting on this ? Thanks.

---

<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: [November 4, 2021, 6:55am UTC](https://discuss.elastic.co/t/query-string-query-length-limit/286095/2 "2021-11-04T06:55:45Z")

</div>

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