コード例 #1
0
ファイル: SpanScorer.cs プロジェクト: carrie901/mono
		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;
			}
		}
コード例 #2
0
ファイル: SpanScorer.cs プロジェクト: vernon016/mono
 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;
     }
 }
コード例 #3
0
ファイル: FilteredQuery.cs プロジェクト: vernon016/mono
 public override void  Normalize(float v)
 {
     weight.Normalize(v);
     value_Renamed = weight.GetValue() * Enclosing_Instance.GetBoost();
 }