[
https://issues.apache.org/jira/browse/LUCENE-2987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Cabrera updated LUCENE-2987:
--------------------------------
Attachment: LUCENE-2987.patch
Patch updates AND and OR tokens to now accept the lowercase versions.
> 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
> Attachments: LUCENE-2987.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]