Implemented as
CopyC#
state.getBoost()*lengthNorm(numTerms)
, where
CopyC#
numTerms
is {@link FieldInvertState#GetLength()} if {@link #setDiscountOverlaps} is false, else it's {@link FieldInvertState#GetLength()} - {@link FieldInvertState#GetNumOverlap()}.

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 override float ComputeNorm(
	string field,
	FieldInvertState state
)
Visual Basic
Public Overrides Function ComputeNorm ( _
	field As String, _
	state As FieldInvertState _
) As Single
Visual C++
public:
virtual float ComputeNorm(
	String^ field, 
	FieldInvertState^ state
) override

Parameters

field
Type: System..::..String

[Missing <param name="field"/> documentation for "M:Lucene.Net.Search.DefaultSimilarity.ComputeNorm(System.String,Lucene.Net.Index.FieldInvertState)"]

state
Type: Lucene.Net.Index..::..FieldInvertState

[Missing <param name="state"/> documentation for "M:Lucene.Net.Search.DefaultSimilarity.ComputeNorm(System.String,Lucene.Net.Index.FieldInvertState)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.DefaultSimilarity.ComputeNorm(System.String,Lucene.Net.Index.FieldInvertState)"]

See Also