IntField inherits from Field class a function called setByteValue(). However, if we call it, it gives an error message:
java.lang.IllegalArgumentException: cannot change value type from Integer to Byte 1. If this not allowed for IntField, and there is no ByteField, how will function setByteValue() be used? 2. Will IntField automatically detect value range is small and use less space? I understand DocValuesField can save space by using variable length codec, but not sure about IntField. Thanks.