Computes the normalization value for a query given the sum of the normalized weights {@link SimWeight#getValueForNormalization()} of each of the query terms. This value is passed back to the weight ( {@link SimWeight#normalize(float,float)} of each query term, to provide a hook to attempt to make scores from different queries comparable.
By default this is disabled (returns 1
), but some implementations such as {@link TFIDFSimilarity} override this.
@param valueForNormalization the sum of the term normalization values
@return a normalization factor for query weights