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

optimize getMergedFieldInfos for one-segment FieldInfos

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.7
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      FieldInfos.getMergedFieldInfos could trivially return the FieldInfos of the first and only LeafReader if there is only one LeafReader.

      Also... if there is more than one LeafReader, and if FieldInfos & FieldInfo implemented equals() & hashCode() (including a cached hashCode), maybe we could also call equals() iterating through the FieldInfos to see if we should bother adding it to the FieldInfos.Builder? Admittedly this is speculative; may not be worth the bother.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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