Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5927

EnumField thinks DocValue support requires a default value or that the field be required

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Implemented
    • None
    • None
    • Schema and Analysis
    • None

    Description

        
        @Override
        public void checkSchemaField(final SchemaField field) {
          if (field.hasDocValues() && !field.multiValued() && !(field.isRequired() || field.getDefaultValue() != null)) {
            throw new IllegalStateException("Field " + this + " has single-valued doc values enabled, but has no default value and is not required");
          }
        }
      

      Attachments

        1. SOLR-5927.patch
          3 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sarowe Steven Rowe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: