Affects Version/s: 4.0-ALPHA
Fix Version/s: 4.0-ALPHA
In trunk, these apis let you easily create a field, but my concern is this:
I really don't like overloaded ctors/setters where the compiler can type-promote you,
I think it makes the apis hard to use.
Instead for the setters I think we sohuld have setIntValue, setLongValue, ...
For the ctors, I see two other options:
- factories like DocValuesField.newIntField()
- subclasses like IntField
I don't have any patch for this, but I think we should discuss and fix before these apis are released.