Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
		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();
		}
Ejemplo n.º 3
0
		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;
			}
		}
Ejemplo n.º 4
0
 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;
     }
 }
Ejemplo n.º 5
0
 public virtual void  Normalize(float v)
 {
     weight.Normalize(v);
     value_Renamed = weight.GetValue() * Enclosing_Instance.GetBoost();
 }
Ejemplo n.º 6
0
 // pass these methods through to enclosed query's weight
 public virtual float GetValue()
 {
     return(weight.GetValue());
 }