You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jim Ferenczi (JIRA)" <ji...@apache.org> on 2017/12/07 10:04:00 UTC

[jira] [Created] (LUCENE-8082) Fix NPE on TopFieldCollectors created with trackTotalHits=false

Jim Ferenczi created LUCENE-8082:
------------------------------------

             Summary: Fix NPE on TopFieldCollectors created with trackTotalHits=false
                 Key: LUCENE-8082
                 URL: https://issues.apache.org/jira/browse/LUCENE-8082
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Jim Ferenczi
            Priority: Minor


`TopFieldCollectors` are now able to early terminate queries if the index sort matches the search sort. The collector checks the index sort only if it was created with `trackTotalHits=false` but it fails with an NPE if the index is not sorted (index sort is null). We should let users set `trackTotalHits` to false even if the index is not sorted, in such case early termination is not applicable but the collection should work.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org