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

CheckIndex should verify numUniqueTerms == recomputedNumUniqueTerms

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4, 4.0-ALPHA
    • 3.5, 4.0-ALPHA
    • None
    • None
    • New

    Description

      Just glancing at the code it seems to sorta do this check, but only in the hasOrd==true case maybe (which seems to be testing something else)?

      It would be nice to verify this also for terms dicts that dont support ord.

      we should add explicit checks per-field in 4.x, and for-all-fields in 3.x and preflex

      Attachments

        1. LUCENE-3473.patch
          17 kB
          Robert Muir
        2. LUCENE-3473.patch
          17 kB
          Robert Muir
        3. LUCENE-3473.patch
          13 kB
          Robert Muir
        4. LUCENE-3473.patch
          12 kB
          Robert Muir

        Issue Links

          Activity

            People

              rcmuir Robert Muir
              rcmuir Robert Muir
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: