You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "rimi (JIRA)" <ji...@apache.org> on 2009/05/14 07:04:45 UTC

[jira] Created: (LUCENE-1635) Handle Escape character

Handle Escape character
-----------------------

                 Key: LUCENE-1635
                 URL: https://issues.apache.org/jira/browse/LUCENE-1635
             Project: Lucene - Java
          Issue Type: Bug
          Components: QueryParser
    Affects Versions: 2.0.0
         Environment: Os-Windows,J2EE
            Reporter: rimi
            Priority: Critical


I have tried to search using the query :AWT-T.The query parser is returning "awt t".It's removing the - special character.If I try to find using the query :AWT\-T then also the query parser is returning the same query "awt t". I have used simpleAnalyzer. Please help me.I want to search using the - character and that's why I put AWT\-T because \ will escape the special character.But it's not working in its way.

-- 
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


[jira] Resolved: (LUCENE-1635) Handle Escape character

Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik Hatcher resolved LUCENE-1635.
----------------------------------

    Resolution: Invalid

This isn't a bug.  If you're using SimpleAnalyzer, it makes sense that it is splitting it up.  Escaping just allows the characters to pass through as-is to the analyzer.

> Handle Escape character
> -----------------------
>
>                 Key: LUCENE-1635
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1635
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>    Affects Versions: 2.0.0
>         Environment: Os-Windows,J2EE
>            Reporter: rimi
>            Priority: Critical
>
> I have tried to search using the query :AWT-T.The query parser is returning "awt t".It's removing the - special character.If I try to find using the query :AWT\-T then also the query parser is returning the same query "awt t". I have used simpleAnalyzer. Please help me.I want to search using the - character and that's why I put AWT\-T because \ will escape the special character.But it's not working in its way.

-- 
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