constructFieldInfo

fun constructFieldInfo(fieldName: String, dvType: DocValuesType, newFieldNumber: Int): FieldInfo?

Construct a new FieldInfo based on the options in global field numbers. This method is not synchronized as all the options it uses are not modifiable.

Return

null if fieldName doesn't exist in the map or is not of the same dvType returns a new FieldInfo based based on the options in global field numbers

Parameters

fieldName

name of the field

dvType

doc values type

newFieldNumber

a new field number