Implementations should calculate a float value based on the field state and then return that value.
For backward compatibility this method by default calls {@link #lengthNorm(String,int)} passing{@link FieldInvertState#getLength()} as the second argument, andthen multiplies this value by {@link FieldInvertState#getBoost()}.
WARNING: This API is new and experimental and may suddenly change.
@param field field name @param state current processing state for this field @return the calculated float norm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|