Looking for some advice.  We have been becoming more and more interested in
the 'explain' data that Solr returns, when requested.  However, some of our
queries cause Solr to throw an exception.  We are seeing a 'this.docScorer
is null'

I have seen this jira issue, which looks somewhat similar:
https://issues.apache.org/jira/browse/LUCENE-9524
But, I don't think it is quite the same.

We do have 'parent' query parser involved here, btw.

The general query is of the form:
nested_q={!parent which="*:* -_nest_path_:* " score=max v=$vq}
where
vq=( _nest_path_:* AND _query_:"{!edismax df=$df qf=$qf v=$user_q}")
and
user_q=elbow injury

Also, it seems like we hit this exception only for certain documents.  For
example, if I set num=1, I can get the explain data for that document
returned.  If I set num=2, I get the exception.  So, there must be
something about the scoring of the 2nd document causing the issue.
Looking for any help...or is this a known issue, and......

Here is a snip from the stack trace.

Thanks for any of your thoughts.

o.a.s.h.RequestHandlerBase Server exception java.lang.NullPointerException:
Cannot invoke "org.apache.lucene.search.LeafSimScorer.score(int, float)"
because "this.docScorer" is null| at
org.apache.lucene.queries.spans.SpanScorer.scoreCurrentDoc(SpanScorer.java:74)|
at org.apache.lucene.queries.spans.SpanScorer.score(SpanScorer.java:131)|
at
org.apache.lucene.search.DisjunctionSumScorer.score(DisjunctionSumScorer.java:45)|
at
org.apache.lucene.search.DisjunctionScorer.score(DisjunctionScorer.java:178)|
at org.apache.lucene.search.BooleanWeight.explain(BooleanWeight.java:124)|
at org.apache.lucene.search.BooleanWeight.explain(BooleanWeight.java:77)|
at org.apache.lucene.search.BooleanWeight.explain(BooleanWeight.java:77)|
at
org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinScorer.explain(ToParentBlockJoinQuery.java:411)|
at
org.apache.lucene.search.join.ToParentBlockJoinQuery$BlockJoinWeight.explain(ToParentBlockJoinQuery.java:175)|
at org.apache.lucene.search.BooleanWeight.explain(BooleanWeight.java:77)|
at org.apache.lucene.search.BooleanWeight.explain(BooleanWeight.java:77)|
at org.apache.lucene.search.IndexSearcher.explain(IndexSearcher.java:871)|
at

Ron Haines

Reply via email to