[
https://issues.apache.org/jira/browse/LUCENE-6001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165650#comment-14165650
]
Dragan Jotanovic commented on LUCENE-6001:
------------------------------------------
I'm afraid that would be very hard as it is not easily reproducible, and I am
not able to provide you with my production index.
Basically what I do is I'm calling DrillSideways search method with boolean
query like (+field:term1 + field:term2 +field:term3 +field:term4 -field:term5)
and drilldown on one facet dimension.
Of 26 segments that my index have, only one is coming with
NullPointerException. If I send 4 instead of 5 terms, it works properly. Also
if I leave out the NOT term, it works with any number of terms.
I'm sorry I couldn't be of more help. If you tell me where to look and how to
debug I can do it and post the results.
I think we just need to find out why is that scorer not initialized, or we
could default the cost to 0 (in DrillSidewaysScorer) if there is null pointer
exception :). In any way, this unchecked exception should probably be caught
somewhere.
> DrillSideways throws NullPointerException for some searches
> -----------------------------------------------------------
>
> Key: LUCENE-6001
> URL: https://issues.apache.org/jira/browse/LUCENE-6001
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/facet
> Affects Versions: 4.10.1
> Reporter: Dragan Jotanovic
>
> For some DrillSideways searches I get NullPointerException.
> I have tracked the problem to DrillSidewaysScorer class, on line 126 in
> DrillSidewaysScorer.java:
> long baseQueryCost = baseScorer.cost();
> On some of my index segments, this call throws NullPoinerException.
> "baseScorer" is instance of ReqExclScorer.
> In ReqExclScorer.java:
> public long cost() {
> return reqScorer.cost();
> }
> throws NullPointerException because reqScorer is null.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]