[ https://issues.apache.org/jira/browse/LUCENE-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14068520#comment-14068520 ]
Tim Allison commented on LUCENE-5839: ------------------------------------- Created edge case to test this. LUCENE-5504 is a cleaner way to go to deal with this. While looking at the code again, I noticed that AnalyzingQueryParser is using the superclass' getXQuery. This will have the effect of lowercasing whatever happens after analysis. If someone's analyzer is upcasing, AnalyzingQueryParser will fail. I can submit another patch to fix this, but I think something along the lines of LUCENE-5504 is a better way to go. > Regex bug in AnalyzingQueryParser > --------------------------------- > > Key: LUCENE-5839 > URL: https://issues.apache.org/jira/browse/LUCENE-5839 > Project: Lucene - Core > Issue Type: Bug > Components: core/queryparser > Affects Versions: 4.9 > Reporter: Tim Allison > Priority: Trivial > > Dennis Walter recently pointed out this bug on dev@lucene.apache.org: > " // gobble escaped chars or find a wildcard character > private final Pattern wildcardPattern = Pattern.compile("(\\.)|([?*]+)"); > The first group will match a literal dot ("."), while its intention seems to > be to match a backslash and a single character. So the expression should > instead be "(\\\\.)|([?*]+)" " -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org