lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4126) Remove FieldType copy constructor
Date Sat, 09 Jun 2012 14:40:43 GMT


Robert Muir commented on LUCENE-4126:

Also i think today, anyone that wants to do things the way you describe can just create the
FieldType from scratch already?

they can do this and set everything from scratch, add the field twice, whatever they want

But if we remove the ability to do simpler things like 'i want a TextField with term vectors
enabled' or 'I want a StringField with index-time boosts', then I think thats a big loss to
less advanced users, with no gain to the experts who can already do things from scratch anyway
if they prefer to do that.

> Remove FieldType copy constructor
> ---------------------------------
>                 Key: LUCENE-4126
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message