[ https://issues.apache.org/jira/browse/SOLR-6256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14290693#comment-14290693 ]
Joel Bernstein commented on SOLR-6256: -------------------------------------- Yep, this was resolved in SOLR-6323. It's fixed in Solr 4.10.3, 5x and Trunk. > ReRankCollector.topDocs throws ArrayIndexOutOfBoundsException if there are no > hits (V4.9) > ----------------------------------------------------------------------------------------- > > Key: SOLR-6256 > URL: https://issues.apache.org/jira/browse/SOLR-6256 > Project: Solr > Issue Type: Bug > Reporter: Peter Keegan > Fix For: 4.10.3, 5.0, Trunk > > > The exception occurs if the main query returns 0 hits. Simple fix: > TopDocs mainDocs = mainCollector.topDocs(0, reRankDocs); > if (mainDocs.totalHits == 0) { > return mainDocs; // nothing to do. > } -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org