[ 
https://issues.apache.org/jira/browse/LUCENE-5839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Sokolov resolved LUCENE-5839.
-------------------------------------
    Resolution: Fixed

AnalyzingQueryParser no longer exists. I also grepped for `wildcardPattern` 
just to make sure this usage didn't persist in some other class and couldn't 
find it: I think it's safe to close this now

> 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 [email protected]:
> "  // 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
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to