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

Optimize IndexSearcher.collectionStatistics

    XMLWordPrintableJSON

    Details

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

      Description

      IndexSearcher.collectionStatistics(field) can do a fair amount of work because with each invocation it will call MultiFields.getTerms(...). The effects of this are aggravated for queries with many fields since each field will want statistics, and also aggravated when there are many segments.

        Attachments

        1. MyBenchmark.java
          9 kB
          David Smiley
        2. lucenecollectionStatisticsbench.zip
          64 kB
          David Smiley
        3. LUCENE-8040.patch
          2 kB
          David Smiley
        4. LUCENE-8040.patch
          2 kB
          David Smiley

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: