You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Sean O'Connor (JIRA)" <ji...@apache.org> on 2010/11/10 21:02:15 UTC
[jira] Created: (LUCENE-2752) EmptyTermSpans.toString() not
overridden - throws NPE
EmptyTermSpans.toString() not overridden - throws NPE
-----------------------------------------------------
Key: LUCENE-2752
URL: https://issues.apache.org/jira/browse/LUCENE-2752
Project: Lucene - Java
Issue Type: Bug
Components: Search
Environment: Ubuntu 10.10, solr/lucene revision 1033666.
Reporter: Sean O'Connor
Priority: Minor
While trying to use lucene SpanQuery (e.g. SpanTermQuery) in a solr QueryComponent.process(), I got a NPE on the EmptySpanTerms.toString() method.
I assume this should be overridden, with something, but not sure what. I just override and return "empty spans", but would assume something better should go there (empty string, null,...).
Interestingly, the error did not bubble up, so I spent a while thinking I had bad queries or test content. Queries just came back blank. After digging a bit, I noticed the 'embedded' error, and tracked down the source. With an overridden EST.toString() my span queries worked again. I have no idea what else depends on EST, or if overriding the toString() will cascade problems. 'ant test' in the lucene branch seemed to pass all tests (Build Successful).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org