Affects Version/s: None
Fix Version/s: None
There is a serious bug in the replaceIgnoreCase method of the EscapeQuerySyntaxImpl class.
This issue can affect QueryNode. (StringIndexOutOfBoundsException)
As I mentioned in comment of the issue, the String#toLowerCase() causes the array to grow in size.
Maintaining the overall structure and fixing bug is very simple.
If we change to the following code, the method works fine.
But I wonder if this is the best way.
How do you think about using String#replace() instead?
First, I upload the patch using String#replace().
If you give me some feedback, I will check it