lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Rowe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-5927) EnumField thinks DocValue support requires a default value or that the field be required
Date Fri, 28 Mar 2014 01:19:15 GMT
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


Mime
View raw message