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

Add IndexOptions.NO and DocValuesType.NO, instead of null

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Idea from Simon: it seems dangerous for IndexOptions and DocValuesType
      via Indexable/FieldType and FieldInfo that we use null to mean it's
      not indexed or has no doc values.

      We should instead have an explicit choice (IndexOptions.NO,
      DocValuesType.NO) in the enum?

        Attachments

        1. LUCENE-6039.patch
          230 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: