ComputeNorm() public method

Compute the normalization value for a field, given the accumulated state of term processing for this field (see 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 LengthNorm(String, int) passing FieldInvertState.GetLength() as the second argument, and then multiplies this value by FieldInvertState.GetBoost().

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

public ComputeNorm ( System field, Lucene.Net.Index.FieldInvertState state ) : float
field System field name ///
state Lucene.Net.Index.FieldInvertState current processing state for this field ///
return float
コード例 #1
0
 public override float ComputeNorm(System.String fieldName, FieldInvertState state)
 {
     return(delegee.ComputeNorm(fieldName, state));
 }