lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Naber (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (LUCENE-588) Escaped wildcard character in wildcard term not handled correctly
Date Wed, 28 Nov 2007 23:27:43 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12546478
] 

lucenebugs@danielnaber.de edited comment on LUCENE-588 at 11/28/07 3:27 PM:
---------------------------------------------------------------

The problem is that the WildcardQuery itself doesn't have a concept of escaped characters.
The escape characters are removed in QueryParser. This mean "t?\\?t" will arrive as "t??t"
in WildcardQuery and the second question mark is also interpreted as a wildcard.


      was (Author: lucenebugs@danielnaber.de):
    The problem is that the WildcardQuery itself doesn't have a concept of escaped characters.
The escape characters are removed in QueryParser. This mean "t?\?t" will arrive as "t??t"
in WildcardQuery and the second question mark is also interpreted as a wildcard.

  
> Escaped wildcard character in wildcard term not handled correctly
> -----------------------------------------------------------------
>
>                 Key: LUCENE-588
>                 URL: https://issues.apache.org/jira/browse/LUCENE-588
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>    Affects Versions: 2.0.0
>         Environment: Windows XP SP2
>            Reporter: Sunil Kamath
>
> If an escaped wildcard character is specified in a wildcard query, it is treated as a
wildcard instead of a literal.
> e.g., t\??t is converted by the QueryParser to t??t - the escape character is discarded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message