lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Nothman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-4042) NullPointerException for query type 'query' without '{! ...}' syntax
Date Wed, 07 Nov 2012 03:06:11 GMT
Joel Nothman created SOLR-4042:
----------------------------------

             Summary: NullPointerException for query type 'query' without '{! ...}' syntax
                 Key: SOLR-4042
                 URL: https://issues.apache.org/jira/browse/SOLR-4042
             Project: Solr
          Issue Type: Bug
          Components: query parsers
    Affects Versions: 4.0, 5.0
            Reporter: Joel Nothman
            Priority: Minor


The 'query' query type, corresponding to NestedQParserPlugin, expects a query of form: "{!
... } ...". An empty q parameter, or a list of search terms causes a NullPointerException
because NestedQParserPlugin.createParser receives a localParams == null, which is then used
without checking in NestedQParserPlugin.QParser.parse().

Correct behaviour is currently ambiguous: throw a syntax error? or execute the query with
the default parser?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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