[ 
https://issues.apache.org/jira/browse/SOLR-17452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17881742#comment-17881742
 ] 

dhirajforyou commented on SOLR-17452:
-------------------------------------

expecting something like


{code:java}
String msg = String.format("Field '%s': Field type '%s' with options: %s", 
fieldName, fieldType, options);
throw new SolrException(ErrorCode.BAD_REQUEST, msg, e);{code}


?

> Inadequate information logged for schema 'add field' error
> ----------------------------------------------------------
>
>                 Key: SOLR-17452
>                 URL: https://issues.apache.org/jira/browse/SOLR-17452
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 9.7
>            Reporter: Tim Parker
>            Priority: Minor
>
> When submitting a batch of 'add-field' commands for a new schema, the batch 
> fails due to an error in one or more field definitions
> The error log entry could be much more useful:
>     at 
> org.apache.solr.schema.ManagedIndexSchema.newField(ManagedIndexSchema.java:1325)
> org.apache.solr.common.SolrException: java.lang.RuntimeException: 
> SchemaField: contents conflicting 'false' field options for non-indexed 
> field:\{multiValued=true, stored=false, required=true, omitNorms=false, 
> indexed=false}
>  
> Can we at least get the NAME of the offending field (if not the full JSON for 
> the problem 'add-field' request)??



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to