Esempio n. 1
0
            /*(non-Javadoc) @see Lucene.Net.Search.Weight#sumOfSquaredWeights() */
            public virtual float SumOfSquaredWeights()
            {
                float sum = subQueryWeight.SumOfSquaredWeights();

                for (int i = 0; i < valSrcWeights.Length; i++)
                {
                    if (qStrict)
                    {
                        valSrcWeights[i].SumOfSquaredWeights();                         // do not include ValueSource part in the query normalization
                    }
                    else
                    {
                        sum += valSrcWeights[i].SumOfSquaredWeights();
                    }
                }
                sum *= Enclosing_Instance.GetBoost() * Enclosing_Instance.GetBoost();                 // boost each sub-weight
                return(sum);
            }
Esempio n. 2
0
 public override float SumOfSquaredWeights()
 {
     return(weight.SumOfSquaredWeights() * Enclosing_Instance.GetBoost() * Enclosing_Instance.GetBoost());
 }
Esempio n. 3
0
 public virtual float SumOfSquaredWeights()
 {
     return(weight.SumOfSquaredWeights() * Enclosing_Instance.GetBoost() * Enclosing_Instance.GetBoost());
 }
Esempio n. 4
0
 public virtual float SumOfSquaredWeights()
 {
     return(weight.SumOfSquaredWeights());
 }