v.22.8Improvement

Avoid Memory Consumption in Pattern Cache with MultiMatch Functions

Avoid continuously growing memory consumption of pattern cache when using functions multi(Fuzzy)Match(Any|AllIndices|AnyIndex)(). #40264 (Robert Schulze).
Prevents continuous growth of memory usage in the pattern cache when using functions like multiMatchAny(), multiFuzzyMatchAllIndices(), and similar pattern matching functions.

Why it matters

This feature addresses the problem of unbounded memory consumption caused by the pattern cache when repeatedly using multi-pattern matching functions. It ensures stable memory usage over time, improving resource efficiency and reliability for queries involving these pattern match functions.

How to use it

The improvement is applied internally and automatically. Users benefit from this memory optimization without needing to change query syntax or configuration when using functions such as multiMatchAny(), multiFuzzyMatchAllIndices(), and related functions.