internal SpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) : base(similarity) { this.spans = spans; this.norms = norms; this.weight = weight; this.value_Renamed = weight.GetValue(); }
protected internal SpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms):base(similarity) { this.spans = spans; this.norms = norms; this.weight = weight; this.value_Renamed = weight.GetValue(); if (this.spans.Next()) { doc = - 1; } else { doc = NO_MORE_DOCS; more = false; } }
protected internal SpanScorer(Spans spans, Weight weight, Similarity similarity, byte[] norms) : base(similarity) { this.spans = spans; this.norms = norms; this.weight = weight; this.value_Renamed = weight.GetValue(); if (this.spans.Next()) { doc = -1; } else { doc = NO_MORE_DOCS; more = false; } }
public virtual void Normalize(float v) { weight.Normalize(v); value_Renamed = weight.GetValue() * Enclosing_Instance.GetBoost(); }
// pass these methods through to enclosed query's weight public virtual float GetValue() { return(weight.GetValue()); }