Compute the normalization value for a field, given the accumulated state of term processing for this field (see {@link FieldInvertState}).

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, and then multiplies this value by {@link FieldInvertState#GetBoost()}.

WARNING: This API is new and experimental and may suddenly change.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual float ComputeNorm(
	string field,
	FieldInvertState state
)
Visual Basic
Public Overridable Function ComputeNorm ( _
	field As String, _
	state As FieldInvertState _
) As Single
Visual C++
public:
virtual float ComputeNorm(
	String^ field, 
	FieldInvertState^ state
)

Parameters

field
Type: System..::..String
field name
state
Type: Lucene.Net.Index..::..FieldInvertState
current processing state for this field

Return Value

the calculated float norm

See Also