You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2014/03/21 14:32:43 UTC
[jira] [Comment Edited] (SOLR-5228) Don't require or
be inside of -- or that be inside of
[ https://issues.apache.org/jira/browse/SOLR-5228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943052#comment-13943052 ]
Yonik Seeley edited comment on SOLR-5228 at 3/21/14 1:31 PM:
-------------------------------------------------------------
I like Erick's idea. No need to make people's life hard who are upgrading (or who have existing tools to deal with our schema's schema ;-)
We should support field and fieldType definitions at the top level and stop using the old way.
edit: re-reading the issue, this is the idea that Hoss originally had too. People can still use the old style if they want.
was (Author: yseeley@gmail.com):
I like Erick's idea. No need to make people's life hard who are upgrading (or who have existing tools to deal with our schema's schema ;-)
We should support field and fieldType definitions at the top level and stop using the old way.
> Don't require <field> or <dynamicField> be inside of <fields> -- or that <fieldType> be inside of <types>
> ---------------------------------------------------------------------------------------------------------
>
> Key: SOLR-5228
> URL: https://issues.apache.org/jira/browse/SOLR-5228
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Reporter: Hoss Man
> Assignee: Hoss Man
>
> On the solr-user mailing list, Nutan recently mentioned spending days trying to track down a problem that turned out to be because he had attempted to add a {{<dynamicField .. />}} that was outside of the {{<fields>}} block in his schema.xml -- Solr was just silently ignoring it.
> We have made improvements in other areas of config validation by generating statup errors when tags/attributes are found that are not expected -- but in this case i think we should just stop expecting/requiring that the {{<fields>}} and {{<types>}} tags will be used to group these sorts of things. I think schema.xml parsing should just start ignoring them and only care about finding the {{<field>}}, {{<dynamicField>}}, and {{<fieldType>}} tags wherever they may be.
> If people want to keep using them, fine. If people want to mix fieldTypes and fields side by side (perhaps specify a fieldType, then list all the fields using it) fine. I don't see any value in forcing people to use them, but we definitely shouldn't leave things the way they are with otherwise perfectly valid field/type declarations being silently ignored.
> ---
> I'll take this on unless i see any objections.
--
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