too_complex_to_determinize_exception
is thrown in a few cases due to the patterns in index template
#127972
Labels
>bug
:Search Foundations/Search
Catch all for Search Foundations
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Elasticsearch Version
9.0.0 ECH
Installed Plugins
No response
Java Version
bundled
OS Version
Elastic Cloud
Problem Description
After an upgrade to Elastic v9.0.0, a user reported that they were encountering
too_complex_to_determinize_exception
error for the index patterns inPUT _index_template/logs-production
.At the moment, we've communicated a workaround: either simplify the patterns or split the patterns across 2 templates. However, we'll need a proper fix for this.
Looking at the commit history, this error is coming from the changes introduced in Lucene 10 upgrade: #114741, i.e. due to
Operations.determinize(Operations.union(automata), Operations.DEFAULT_DETERMINIZE_WORK_LIMIT)
inRegex#simpleMatchToAutomaton()
.Link to the SDH: https://github.com/elastic/sdh-elasticsearch/issues/8947.
Steps to Reproduce
Here's an example:
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: