Example #1
0
 /*(non-Javadoc) @see Mono.Lucene.Net.Search.Weight#normalize(float) */
 public override void  Normalize(float norm)
 {
     norm *= Enclosing_Instance.GetBoost();                 // incorporate boost
     subQueryWeight.Normalize(norm);
     for (int i = 0; i < valSrcWeights.Length; i++)
     {
         if (qStrict)
         {
             valSrcWeights[i].Normalize(1);                         // do not normalize the ValueSource part
         }
         else
         {
             valSrcWeights[i].Normalize(norm);
         }
     }
 }
Example #2
0
 public override void  Normalize(float v)
 {
     weight.Normalize(v);
     value_Renamed = weight.GetValue() * Enclosing_Instance.GetBoost();
 }