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