You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2014/03/28 02:19:15 UTC

[jira] [Created] (SOLR-5927) EnumField thinks DocValue support requires a default value or that the field be required

Steve Rowe created SOLR-5927:
--------------------------------

             Summary: EnumField thinks DocValue support requires a default value or that the field be required
                 Key: SOLR-5927
                 URL: https://issues.apache.org/jira/browse/SOLR-5927
             Project: Solr
          Issue Type: Bug
          Components: Schema and Analysis
            Reporter: Steve Rowe
            Priority: Minor


{noformat}  
  @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");
    }
  }
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org