Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5020

Make DrillSidewaysResult ctor public

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.4, 6.0
    • modules/facet
    • None
    • New, Patch Available

    Description

      DrillSidewaysResult has a package-private ctor which prevents initializing it by an app. I found that it's sometimes useful for e.g. doing some post-processing on the returned TopDocs or List<FacetResult>. Since you cannot return two values from a method, it will be convenient if method could return a new 'processed' DSR.

      I would also like to make the hits member final.

      Attachments

        1. LUCENE-5020.patch
          2 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            shaie Shai Erera
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: