Lucene - Core
  1. Lucene - Core
  2. LUCENE-3473

CheckIndex should verify numUniqueTerms == recomputedNumUniqueTerms

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.4, 4.0-ALPHA
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

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

        Issue Links

          Activity

            People

            • Assignee:
              Robert Muir
              Reporter:
              Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development