[
https://issues.apache.org/jira/browse/SOLR-4641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645989#comment-13645989
]
yuanyun.cn commented on SOLR-4641:
----------------------------------
This is a useful feature, but as in the old code, Solr didn't check the the
validity in field and dynamicField in schema.xml.
So we extend Solr to add some custom parameters, such as
<field MYPARAM="VALUE" indexed="true" multiValued="true" name="f1"
stored="true" type="string"/>
But after apply this patch, my code doesn't work any more.
-- I think this should not be rare case as users usually need extend Solr -
this is the good part of open source :)
I can change the code to make it work, but I think maybe we can add a parameter
in schema.xml: validate=true/false in schema.xml level or in field/or
dynamicField level, by default the value is true.
If users specify validate=false in schema.xml, field or dynamicField level,
Solr will not validate trelated values.
In this way, users who extend Solr can easily makes their code works after
upgrade.
Thanks.
> Schema should throw exception on illegal field parameters
> ---------------------------------------------------------
>
> Key: SOLR-4641
> URL: https://issues.apache.org/jira/browse/SOLR-4641
> Project: Solr
> Issue Type: Bug
> Components: Schema and Analysis
> Reporter: Robert Muir
> Fix For: 4.3, 5.0
>
> Attachments: SOLR-4641.patch
>
>
> Currently FieldType does this correctly, but SchemaField does not.
> so for example simple typos like (one from solr's test configs itself)
> omitOmitTermFrequencyAndPositions=true... on the field elements themselves
> are silently ignored.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]