@Override public float getValueForNormalization() throws IOException { float sum = subQueryWeight.getValueForNormalization(); for (Weight valSrcWeight : valSrcWeights) { if (qStrict == false) { // otherwise do not include ValueSource part in the query normalization sum += valSrcWeight.getValueForNormalization(); } } return sum; }
MatchNoneScorer(AtomicReader r, Weight w) throws IOException { super(w); score = w.getValueForNormalization(); reader = r; }
@Override public float getValueForNormalization() throws IOException { return weight.getValueForNormalization(); }
@Override public float getValueForNormalization() throws IOException { return innerWeight.getValueForNormalization(); }
@Override public float getValueForNormalization() throws IOException { return _innerWeight.getValueForNormalization(); }
@Override public float getValueForNormalization() throws IOException { float sum = subQueryWeight.getValueForNormalization(); for (Weight valSrcWeight : valSrcWeights) { if (qStrict == false) { // otherwise do not include ValueSource part in the query normalization sum += valSrcWeight.getValueForNormalization(); } } return sum; }
@Override public float getValueForNormalization() throws IOException { return matchWeight.getValueForNormalization(); }
@Override public float getValueForNormalization() throws IOException { return subQueryWeight.getValueForNormalization(); }
@Override public float getValueForNormalization() throws IOException { return subQueryWeight.getValueForNormalization(); }
@Override public float getValueForNormalization() throws IOException { return weight.getValueForNormalization(); }
@Override public float getValueForNormalization() throws IOException { return _weight.getValueForNormalization(); }
/** Compute the sub of squared weights of us applied to our subqueries. Used for normalization. */ @Override public float getValueForNormalization() throws IOException { float max = 0.0f, sum = 0.0f; for (Weight currentWeight : weights) { float sub = currentWeight.getValueForNormalization(); sum += sub; max = Math.max(max, sub); } return (((sum - max) * tieBreakerMultiplier * tieBreakerMultiplier) + max); }
/** Compute the sub of squared weights of us applied to our subqueries. Used for normalization. */ @Override public float getValueForNormalization() throws IOException { float max = 0.0f, sum = 0.0f; for (Weight currentWeight : weights) { float sub = currentWeight.getValueForNormalization(); sum += sub; max = Math.max(max, sub); } return (((sum - max) * tieBreakerMultiplier * tieBreakerMultiplier) + max); }
@Override public float getValueForNormalization() throws IOException { // we calculate sumOfSquaredWeights of the inner weight, but ignore it (just to initialize everything) if (innerWeight != null) innerWeight.getValueForNormalization(); queryWeight = NodeConstantScoreQuery.this.getBoost(); return queryWeight * queryWeight; }
@Override public float getValueForNormalization() throws IOException { queryWeight = getBoost(); if (scoreType == ScoreType.NONE) { return queryWeight * queryWeight; } float sum = childWeight.getValueForNormalization(); sum *= queryWeight * queryWeight; return sum; }
@Override public float getValueForNormalization() throws IOException { return delegate.getValueForNormalization(); }
@Override public float getValueForNormalization() throws IOException { // we calculate sumOfSquaredWeights of the inner weight, but ignore it (just to initialize everything) if (innerWeight != null) innerWeight.getValueForNormalization(); queryWeight = NodeConstantScoreQuery.this.getBoost(); return queryWeight * queryWeight; }
@Override public float getValueForNormalization() throws IOException { float sum = 0.0f; for (int i = 0; i < weights.size(); i++) { sum += weights.get(i).getValueForNormalization(); // sum sub weights } // boost each sub-weight sum *= NearSpanQuery.this.getBoost() * NearSpanQuery.this.getBoost(); return sum; }
@Override public float getValueForNormalization() throws IOException { float sum = 0.0f; for (int i = 0; i < weights.size(); i++) { sum += weights.get(i).getValueForNormalization(); // sum sub weights } // boost each sub-weight sum *= OrSpanQuery.this.getBoost() * OrSpanQuery.this.getBoost(); return sum; }
@Override public float getValueForNormalization() throws IOException { // only use include clause float sum = this.includeWeight.getValueForNormalization(); // boost each sub-weight sum *= NotSpanQuery.this.getBoost() * NotSpanQuery.this.getBoost(); return sum; }