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

Optimize IndexSearcher.collectionStatistics

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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. 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

            • Assignee:
              dsmiley David Smiley
              Reporter:
              dsmiley David Smiley

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment