You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Michael Gibney (Jira)" <ji...@apache.org> on 2022/04/21 20:57:00 UTC

[jira] [Created] (SOLR-16162) FilterQuery (`filter([some_query])`) should implement DocSetProducer

Michael Gibney created SOLR-16162:
-------------------------------------

             Summary: FilterQuery (`filter([some_query])`) should implement DocSetProducer
                 Key: SOLR-16162
                 URL: https://issues.apache.org/jira/browse/SOLR-16162
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query parsers
    Affects Versions: main (10.0)
            Reporter: Michael Gibney


There is a substantial practical reason for FilterQuery to implement DocSetProducer: the way FilterQuery works, it only consults the cache internally for the backing query; the cache is never directly consulted for the FilterQuery _per se_. As a consequence, when FilterQuery is used in a context that wants a DocSet, currently (without implementing DocSetProducer), a full clone of the cached DocSet must always be built via the Weight returned by FilterQuery.createWeight(). Implementing DocSetProducer allows to avoid superfluous DocSet creation.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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