gautamworah96 edited a comment on pull request #242: URL: https://github.com/apache/lucene/pull/242#issuecomment-900757557
Fixed the `IndexSearcher#count` API > then the top hits collector would not have to collect some documents only for the purpose of counting hits. Not sure I understand this correctly. IIUC, today, when we try `IndexSearcher#search(query,n)` we only collect the `max(TOTAL_HITS_THRESHOLD,n)` hits (because we use the `HitsThresholdChecker`) and with this change, we want to collect only the `min(TOTAL_HITS_THRESHOLD,n)`? -- 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. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org