[
https://issues.apache.org/jira/browse/SOLR-347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599603#action_12599603
]
Koji Sekiguchi commented on SOLR-347:
-------------------------------------
I cannot reproduce the issue. Solr throws a helpful error message when
detecting the duplicate field definition, as follows:
FATAL: org.apache.solr.common.SolrException: [schema.xml] Duplicate field
definition for 'name' ignoring:
name{type=text,properties=indexed,tokenized,stored}
at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:444)
at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:93)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:340)
:
and if <abortOnConfigurationError/> is set to true, when I make a query, I can
get 500 error with above stack trace.
> AIOOBE when field name declared twice in schema
> -----------------------------------------------
>
> Key: SOLR-347
> URL: https://issues.apache.org/jira/browse/SOLR-347
> Project: Solr
> Issue Type: Bug
> Components: search
> Reporter: Hoss Man
>
> anecdotal reports that defining the same field name twice in your schema
> triggers a cryptic
> ArrayIndexOutOfBoundsException ...
> http://www.nabble.com/Can%27t-get-1.2-running-under-Tomcat-5.5-tf4384790.html
> ..we should test for this and either throw a more helpful error or ignore one
> and issue a warning.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.