# Regex query in 7.13.4

**URL:** <https://discuss.elastic.co/t/regex-query-in-7-13-4/286884>\
**Category:** Elasticsearch\
**Created:** [October 16, 2021, 8:07am UTC](https://discuss.elastic.co/t/regex-query-in-7-13-4/286884 "2021-10-16T08:07:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![junhuangli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/junhuangli/32/77615_2.png) [@junhuangli](https://discuss.elastic.co/u/junhuangli)\
**Post date:** [October 16, 2021, 8:07am UTC](https://discuss.elastic.co/t/regex-query-in-7-13-4/286884/1 "2021-10-16T08:07:57Z")

</div>

After upgrading Elasticsearch from 6.6.2 to 7.13.4, we found the regex query is much slower(10 times slower).

We are doing a pretty expensive regex search like "._(["]fieldName["]:["]my-value-[A-Za-z][A-Za-z][A-Za-z0-9]["])._". But since we only have around 10 million documents for this index, it was working ok in version 6.6.2

Is there any known issues or any upgrade we missed in es 7.13.4?

Any suggestion is highly appreciated!

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [October 18, 2021, 2:24pm UTC](https://discuss.elastic.co/t/regex-query-in-7-13-4/286884/2 "2021-10-18T14:24:57Z")

</div>

Can you share the relevant JSON for the query and mappings?  
What response times are you seeing?

---

<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 15, 2021, 2:25pm UTC](https://discuss.elastic.co/t/regex-query-in-7-13-4/286884/3 "2021-11-15T14:25:42Z")

</div>

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