lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean O'Connor (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-2752) EmptyTermSpans.toString() not overridden - throws NPE
Date Wed, 10 Nov 2010 20:02:15 GMT
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


Mime
View raw message