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

Michael Busch commented on LUCENE-588:
--------------------------------------

True... a solution might be to have the queryparser map escaped chars to some
unused unicode codepoints. Then the WildcardQuery could distinguish escaped
chars. I'd guess that other classes, like FuzzyQuery might have the same 
problem?

The advantage of such a char mapping is that we can keep the String API and
don't have to add special APIs to the Query objects for the queryparser.

> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to