dsmiley commented on a change in pull request #1310: SOLR-13350: Multithreaded search using collector managers URL: https://github.com/apache/lucene-solr/pull/1310#discussion_r397860433
########## File path: solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java ########## @@ -1712,33 +1806,47 @@ public ScoreMode scoreMode() { // no docs on this page, so cursor doesn't change qr.setNextCursorMark(cmd.getCursorMark()); } else { - - final TopDocsCollector topCollector = buildTopDocsCollector(len, cmd); - DocSetCollector setCollector = new DocSetCollector(maxDoc); - MaxScoreCollector maxScoreCollector = null; - List<Collector> collectors = new ArrayList<>(Arrays.asList(topCollector, setCollector)); - - if ((cmd.getFlags() & GET_SCORES) != 0) { - maxScoreCollector = new MaxScoreCollector(); - collectors.add(maxScoreCollector); + TopDocs topDocs; + if (pf.postFilter != null || cmd.getSegmentTerminateEarly() || cmd.getTimeAllowed() > 0 + || query instanceof RankQuery || query instanceof GraphQuery) { Review comment: What makes GraphQuery so special? Maybe we should define a marker interface here? What if the Query is a BooleanQuery that somewhere inside _contains_ a GraphQuery? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org