lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Keegan <peterlkee...@gmail.com>
Subject NPE in NearSpansUnordered
Date Thu, 15 Oct 2009 17:17:44 GMT
I'm using Lucene 2.9 and sometimes get a NPE in NearSpansUnordered:

 <java.lang.NullPointerException>java.lang.NullPointerException
at
org.apache.lucene.search.spans.NearSpansUnordered.start(NearSpansUnordered.java:219)
at
org.apache.lucene.search.payloads.PayloadNearQuery$PayloadNearSpanScorer.processPayloads(PayloadNearQuery.java:201)
at
org.apache.lucene.search.payloads.PayloadNearQuery$PayloadNearSpanScorer.getPayloads(PayloadNearQuery.java:180)
at
org.apache.lucene.search.payloads.PayloadNearQuery$PayloadNearSpanScorer.getPayloads(PayloadNearQuery.java:183)
at
org.apache.lucene.search.payloads.PayloadNearQuery$PayloadNearSpanScorer.setFreqCurrentDoc(PayloadNearQuery.java:214)
at org.apache.lucene.search.spans.SpanScorer.nextDoc(SpanScorer.java:64)
at org.apache.lucene.search.Scorer.score(Scorer.java:74)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:247)
at org.apache.lucene.search.Searcher.search(Searcher.java:152)

The CellQueue pq is empty when this occurs. Are there any conditions in
which the queue might be expected to be empty?

Peter

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message