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

Only check docsWithField when necessary in numeric comparators

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 4.10, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Our numeric comparators have branches to deal with missing values. However there are some cases when checking docs that have a field is not useful:

      • if all docs have a value
      • if no docs have a value
      • if the missing value is 0

        Attachments

        1. LUCENE-5837.patch
          9 kB
          Adrien Grand
        2. LUCENE-5837.patch
          9 kB
          Adrien Grand

          Activity

            People

            • Assignee:
              jpountz Adrien Grand
              Reporter:
              jpountz Adrien Grand
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: