You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Joe Cabrera (Commented) (JIRA)" <ji...@apache.org> on 2011/12/29 23:22:30 UTC

[jira] [Commented] (LUCENE-2987) QueryParser throwing null pointer exception if input is invalid

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

Joe Cabrera commented on LUCENE-2987:
-------------------------------------

Currently the grammar accepts conjunctions AND and OR. Should it be expanded to accept lowercase and and or as well or should they return an explicit error?
                
> QueryParser throwing null pointer exception if input is invalid
> ---------------------------------------------------------------
>
>                 Key: LUCENE-2987
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2987
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/queryparser
>    Affects Versions: 3.0.2
>            Reporter: Ramesh
>              Labels: newdev
>
> I was using org.apache.lucene.queryParser.QueryParser for parsing the input.
> My input:
> Input query string:  "category: (4 or 6 or 8)"
> Analyzer: StandardAnalyzer
> QueryParser's parse() method is resulting in Null Pointer Exception.
> If i give input query string as "category: (4 OR 6 OR 8)" which is uppercase 'OR', it works fine and i get the desired results.
> I'm seeing the problem only with lower case 'or'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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