lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Caron <eric.ca...@gmail.com>
Subject Strange NPE with SOLR-236 (Field collapsing)
Date Mon, 10 May 2010 21:29:28 GMT
Using the latest from trunk as of 2010-04-29, and the
SOLR-236<https://issues.apache.org/jira/browse/SOLR-236>-trunk.patch
from 2010-03-29 05:08, I get a nullpointerexception whenever I use
collapse.field and a fq.

Works: /solr/select/?q=sales&fq=country%3A1
Works: /solr/select/?q=sales&collapse.field=company
Doesn't work: /solr/select/?q=sales&collapse.field=company&fq=country%3A1

The top of the trace is:
java.lang.NullPointerException
at
org.apache.solr.search.fieldcollapse.NonAdjacentDocumentCollapser$FloatValueFieldComparator.compare(NonAdjacentDocumentCollapser.java:450)
at
org.apache.solr.search.fieldcollapse.NonAdjacentDocumentCollapser$DocumentComparator.compare(NonAdjacentDocumentCollapser.java:262)
at
org.apache.solr.search.fieldcollapse.NonAdjacentDocumentCollapser$DocumentPriorityQueue.lessThan(NonAdjacentDocumentCollapser.java:196)
at
org.apache.lucene.util.PriorityQueue.insertWithOverflow(PriorityQueue.java:148)
at
org.apache.solr.search.fieldcollapse.NonAdjacentDocumentCollapser.doCollapsing(NonAdjacentDocumentCollapser.java:113)
at
org.apache.solr.search.fieldcollapse.AbstractDocumentCollapser.executeCollapse(AbstractDocumentCollapser.java:259)
at
org.apache.solr.search.fieldcollapse.AbstractDocumentCollapser.collapse(AbstractDocumentCollapser.java:179)
at
org.apache.solr.handler.component.CollapseComponent.doProcess(CollapseComponent.java:173)
at
org.apache.solr.handler.component.CollapseComponent.process(CollapseComponent.java:127)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)

What's oddest is that the search works on the first load, and on a F5 in the
browser, but a hard-refresh (control-F5) forces it to crash. The only
problems are with FieldCollapse, everything else works great. I'd love to
help more with debugging, but I'm not Java-savvy enough (yet).

Appreciative of any help available,
@ecaron

(This is also posted on
https://issues.apache.org/jira/browse/SOLR-236#comment_12862327_header_ecaron
)

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