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

Add IndexSearcher.getSlices

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.5, 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      When you pass an executor to IndexSearcher, it creates a LeafSlice[] slices, by default once slice per leaf, but a subclass can override.  It's helpful to later be able to get those slices e.g. if you want to do your own concurrent per-slice processing.

      This patch will just add a getter to IndexSearcher, and make the LeafSlice.leaves member public.

        Attachments

        1. LUCENE-8387.patch
          3 kB
          Michael McCandless
        2. LUCENE-8387.patch
          3 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: