You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mathias H. (JIRA)" <ji...@apache.org> on 2013/05/14 10:29:16 UTC

[jira] [Commented] (SOLR-4641) Schema should throw exception on illegal field parameters

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

Mathias H. commented on SOLR-4641:
----------------------------------

Like yuanyun.cn, I also extended my solr schema with a custom attribute. So something like validate=false would be very useful.
                
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [jira] [Commented] (SOLR-4641) Schema should throw exception on illegal field parameters

Posted by Erick Erickson <er...@gmail.com>.
>From Steve's reply:

One thing you can do right now as an alternative to custom {{<field>}}
attributes is child elements, e.g.:

{code:xml}
<field indexed="true" multiValued="true" name="f1" stored="true" type="string">
  <MYPARAM>VALUE</MYPARAM>  <!-- Maven property style -->
  <custom MYPARAM="VALUE"/> <!-- Alternative syntax; element name
could be anything you want  -->
  ...
</field>
{code}

Is the above sufficient for your use cases?

On Tue, Jun 11, 2013 at 8:20 AM, uwe72 <uw...@exxcellent.de> wrote:
> is there a solution for it, we also use own custom properties?!
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/jira-Commented-SOLR-4641-Schema-should-throw-exception-on-illegal-field-parameters-tp4063164p4069623.html
> Sent from the Lucene - Java Developer mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [jira] [Commented] (SOLR-4641) Schema should throw exception on illegal field parameters

Posted by uwe72 <uw...@exxcellent.de>.
is there a solution for it, we also use own custom properties?!



--
View this message in context: http://lucene.472066.n3.nabble.com/jira-Commented-SOLR-4641-Schema-should-throw-exception-on-illegal-field-parameters-tp4063164p4069623.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org