lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramesh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-2987) QueryParser throwing null pointer exception if input is invalid
Date Thu, 24 Mar 2011 06:18:05 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ramesh updated LUCENE-2987:
---------------------------

    Description: 
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'

  was:
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'


> 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: QueryParser
>    Affects Versions: 3.0.2
>            Reporter: Ramesh
>
> 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.
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


Mime
View raw message