You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Christoph Büscher (Jira)" <ji...@apache.org> on 2019/10/01 14:53:00 UTC

[jira] [Created] (LUCENE-8995) TopSuggestDocsCollector#collect should be able to signal rejection

Christoph Büscher created LUCENE-8995:
-----------------------------------------

             Summary: TopSuggestDocsCollector#collect should be able to signal rejection
                 Key: LUCENE-8995
                 URL: https://issues.apache.org/jira/browse/LUCENE-8995
             Project: Lucene - Core
          Issue Type: Improvement
          Components: modules/suggest
    Affects Versions: 8.2
            Reporter: Christoph Büscher


Currently the suggestion collectors collect() method has no way of signaling back to the caller whether the matched completion it received was indeed collected.

While this is currenty always the case for the default TopSuggestDocsCollector, there are implementations that overwrite this with custom collection logic that also deduplicates based on e.g. docID and/or context. Currently if those completions are rejected, the calling TopNSearcher has no way of noting these rejections and might therefore terminate early, thus missing on completions that should be returned.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org