public FieldType(IndexableFieldType ref) {this.stored = ref.stored();this.tokenized = ref.tokenized();this.storeTermVectors = ref.storeTermVectors();this.storeTermVectorOffsets = ref.storeTermVectorOffsets();this.storeTermVectorPositions = ref.storeTermVectorPositions();this.storeTermVectorPayloads = ref.storeTermVectorPayloads();this.omitNorms = ref.omitNorms();this.indexOptions = ref.indexOptions();this.docValuesType = ref.docValuesType();this.dimensionCount = ref.pointDimensionCount();this.indexDimensionCount = ref.pointIndexDimensionCount();this.dimensionNumBytes = ref.pointNumBytes();if (ref.getAttributes() != null) {this.attributes = new HashMap<>(ref.getAttributes());}}

public FieldType(FieldType @ref){this.indexed = @ref.IsIndexed;this.stored = @ref.IsStored;this.tokenized = @ref.IsTokenized;this.storeTermVectors = @ref.StoreTermVectors;this.storeTermVectorOffsets = @ref.StoreTermVectorOffsets;this.storeTermVectorPositions = @ref.StoreTermVectorPositions;this.storeTermVectorPayloads = @ref.StoreTermVectorPayloads;this.omitNorms = @ref.OmitNorms;this.indexOptions = @ref.IndexOptions;this.docValueType = @ref.DocValueType;this.numericType = @ref.NumericType;}
