Esempio n. 1
0
            /*(non-Javadoc) <see cref="Lucene.Net.Search.Weight.explain(Lucene.Net.Index.IndexReader, int) */
            public override Explanation Explain(IndexReader reader, int doc)
            {
                DocValues vals = enclosingInstance.valSrc.GetValues(reader);
                float     sc   = queryWeight * vals.FloatVal(doc);

                Explanation result = new ComplexExplanation(true, sc, enclosingInstance.ToString() + ", product of:")
                ;

                result.AddDetail(vals.Explain(doc));
                result.AddDetail(new Explanation(enclosingInstance.Boost, "boost"));
                result.AddDetail(new Explanation(queryNorm, "queryNorm"));
                return(result);
            }
Esempio n. 2
0
 /*(non-Javadoc) <see cref="Lucene.Net.Search.Scorer.explain(int) */
 public override float Score()
 {
     return(qWeight * vals.FloatVal(termDocs.Doc));
 }