cbuescher commented on a change in pull request #913: LUCENE-8995: TopSuggestDocsCollector#collect should be able to signal rejection URL: https://github.com/apache/lucene-solr/pull/913#discussion_r332905842
########## File path: lucene/suggest/src/java/org/apache/lucene/search/suggest/document/TopSuggestDocsCollector.java ########## @@ -201,4 +205,27 @@ public void collect(int doc) throws IOException { public ScoreMode scoreMode() { return ScoreMode.COMPLETE; } + + /** + * returns true if the collector clearly exhausted all possibilities to collect results + */ + boolean isComplete() { Review comment: Not necessary, but since we need the underlying flag and its currently private, I thought its okay to have at least a package private getter. Or does it bloat the class too much? Happy to remove either way, wdyt? ---------------------------------------------------------------- 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