[
https://issues.apache.org/jira/browse/SOLR-5927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hoss Man updated SOLR-5927:
---------------------------
Attachment: SOLR-5927.patch
the code in question seems to have been fixed/removed by [~shalinmangar] in
SOLR-5846 (see 059e5259c68287033b28588f85f1bf5fcdd3f991) but the
fieldType+copyField permutations in {{schema-sorts.xml}} were left commented
out with the citation pointing to this jira.
In the attached patch all i've done is uncomment them --
TestRandomCollapseQParserPlugin and all the the Cursor tests (which use this
schema and expect to be able to sort on any field specified) all _seem_ to pass?
> 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
> Attachments: SOLR-5927.patch
>
>
> {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.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]