Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16162

FilterQuery (`filter([some_query])`) should implement DocSetProducer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • main (10.0)
    • None
    • query parsers
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              magibney Michael Gibney
              magibney Michael Gibney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m