/*(non-Javadoc) @see org.apache.lucene.search.Weight#sumOfSquaredWeights() */ @Override public float sumOfSquaredWeights() throws IOException { float sum = subQueryWeight.sumOfSquaredWeights(); for (int i = 0; i < valSrcWeights.length; i++) { if (qStrict) { valSrcWeights[i] .sumOfSquaredWeights(); // do not include ValueSource part in the query normalization } else { sum += valSrcWeights[i].sumOfSquaredWeights(); } } sum *= getBoost() * getBoost(); // boost each sub-weight return sum; }
@Override public float sumOfSquaredWeights() throws IOException { float sum = qWeight.sumOfSquaredWeights(); sum *= getBoost() * getBoost(); return sum; }