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: [email protected]
For additional commands, e-mail: [email protected]