Computes the normalization value for a query given the sum of the squared weights of each of the query terms. This value is then multipled into the weight of each query term.

This does not affect ranking, but rather just attempts to make scores from different queries comparable.

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

Syntax

C#
public abstract float QueryNorm(
	float sumOfSquaredWeights
)
Visual Basic
Public MustOverride Function QueryNorm ( _
	sumOfSquaredWeights As Single _
) As Single
Visual C++
public:
virtual float QueryNorm(
	float sumOfSquaredWeights
) abstract

Parameters

sumOfSquaredWeights
Type: System..::..Single
the sum of the squares of query term weights

Return Value

a normalization factor for query weights

See Also