You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Michael Sokolov (Jira)" <ji...@apache.org> on 2019/12/17 21:47:00 UTC

[jira] [Resolved] (LUCENE-5839) Regex bug in AnalyzingQueryParser

     [ 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 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
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org