lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4126) Remove FieldType copy constructor
Date Sat, 09 Jun 2012 13:16:42 GMT

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

Robert Muir commented on LUCENE-4126:
-------------------------------------

Lets play out a few typical realistic scenarios that are not too expert:
1. user has a text field and wants to enable term vectors (so they can use highlighting/MLT)
2. user has a string field and wants to enable norms (so they can use index-time boosting)

what does the before/after picture look like here? Is it easier? Is it trappy?
                
> Remove FieldType copy constructor
> ---------------------------------
>
>                 Key: LUCENE-4126
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4126
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Chris Male
>             Fix For: 4.0, 5.0
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


Mime
View raw message