You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 05:48:07 UTC

[jira] [Updated] (LUCENE-4126) Remove FieldType copy constructor

     [ https://issues.apache.org/jira/browse/LUCENE-4126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley updated LUCENE-4126:
---------------------------------

    Fix Version/s:     (was: 4.7)
                   4.8

> Remove FieldType copy constructor
> ---------------------------------
>
>                 Key: LUCENE-4126
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4126
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Chris Male
>             Fix For: 4.8
>
>
> Currently FieldTypes can be created using new FieldType(someOtherFieldType) which copies the properties and allows them to then changed.  This reduces readability since it hides what properties someOtherFieldType has enabled.  We should encourage users (and ourselves) to explicitly state what properties are enabled so to prevent any surprises. 



--
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