# For prefix query, the max prefix length is 1000, is there any document show that?

**URL:** <https://discuss.elastic.co/t/for-prefix-query-the-max-prefix-length-is-1000-is-there-any-document-show-that/298749>\
**Category:** Elasticsearch\
**Created:** [March 3, 2022, 1:49pm UTC](https://discuss.elastic.co/t/for-prefix-query-the-max-prefix-length-is-1000-is-there-any-document-show-that/298749 "2022-03-03T13:49:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![major](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/major/32/87149_2.png) [@major](https://discuss.elastic.co/u/major)\
**Post date:** [March 3, 2022, 1:49pm UTC](https://discuss.elastic.co/t/for-prefix-query-the-max-prefix-length-is-1000-is-there-any-document-show-that/298749/1 "2022-03-03T13:49:41Z")

</div>

for the [prefix](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/query-dsl-prefix-query.html), I tried by my self, when the prefix length larger than 1000, the lucene will throw exception？I would like to know it there any configuration can change the max length? or any document support it?

---

<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:** [March 31, 2022, 1:50pm UTC](https://discuss.elastic.co/t/for-prefix-query-the-max-prefix-length-is-1000-is-there-any-document-show-that/298749/2 "2022-03-31T13:50:21Z")

</div>

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