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

MultiFields.getIndexedFields can be optimized to not use getMergedFieldInfos

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.0
    • None
    • None
    • New

    Description

      MultiFields.getIndexedFields calls getMergedFieldInfos. But getMergedFieldInfos is kinda heavy, doing all sorts of stuff that getIndexedFields doesn't care about. It can simply loop the leaf readers and collect the results into a Set. Java 8 streams should make easy work of this.

      Attachments

        1. LUCENE-8511.patch
          3 kB
          David Smiley
        2. LUCENE-8511.patch
          2 kB
          David Smiley

        Activity

          People

            dsmiley David Smiley
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: