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_r330672796
 
 

 ##########
 File path: 
lucene/suggest/src/java/org/apache/lucene/search/suggest/document/NRTSuggester.java
 ##########
 @@ -283,17 +299,25 @@ public int compare(Pair<Long, BytesRef> o1, Pair<Long, 
BytesRef> o2) {
    * <p>
    * If a <code>filter</code> is applied, the queue size is increased by
    * half the number of live documents.
+   *
+   * If the collector can reject documents upon collecting, the queue size is
+   * increased by half the number of live documents again.
+   *
    * <p>
    * The maximum queue size is {@link #MAX_TOP_N_QUEUE_SIZE}
    */
-  private int getMaxTopNSearcherQueueSize(int topN, int numDocs, double 
liveDocsRatio, boolean filterEnabled) {
+  private int getMaxTopNSearcherQueueSize(int topN, int numDocs, double 
liveDocsRatio, boolean filterEnabled,
 
 Review comment:
   I considered this as well first, but then moved to the two independent 
flags. Will revert that part.

----------------------------------------------------------------
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

Reply via email to