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

Require consistency between data-structures on a per-field basis

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None
    • New

    Description

      Follow-up of https://lists.apache.org/thread.html/r747de568afd7502008c45783b74cc3aeb31dab8aa60fcafaf65d5431%40%3Cdev.lucene.apache.org%3E.

      We would like to start requiring consitency across data-structures on a per-field basis in order to make it easier to do the right thing by default: range queries can run faster if doc values are enabled, sorted queries can run faster if points by indexed, etc.

      This would be a big change, so it should be rolled out in a major.

      Strict validation is tricky to implement, but we should still implement best-effort validation:

      • Documents all use the same data-structures, e.g. it is illegal for a document to only enable points and another document to only enable doc values,
      • When possible, check whether values are consistent too.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jpountz Adrien Grand
              Votes:
              2 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 14.5h
                  14.5h