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

Optimize IndexSearcher.collectionStatistics

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.0
    • core/search
    • None
    • 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. LUCENE-8040.patch
          2 kB
          David Smiley
        2. LUCENE-8040.patch
          2 kB
          David Smiley
        3. lucenecollectionStatisticsbench.zip
          64 kB
          David Smiley
        4. MyBenchmark.java
          9 kB
          David Smiley

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: