public ValueSourceScorerAnonymousInnerClassHelper4(FunctionValues outerInstance, IndexReader reader, FunctionValues @this, float l, float u) : base(reader, @this) { this.outerInstance = outerInstance; this.l = l; this.u = u; }
protected internal ValueSourceScorer(IndexReader reader, FunctionValues values) : base(null) { this.m_reader = reader; this.m_maxDoc = reader.MaxDoc; this.m_values = values; SetCheckDeletes(true); this.liveDocs = MultiFields.GetLiveDocs(reader); }
public CustomScorer(BoostedQuery outerInstance, AtomicReaderContext readerContext, BoostedQuery.BoostedWeight w, float qWeight, Scorer scorer, ValueSource vs) : base(w) { this.outerInstance = outerInstance; this.weight = w; this.qWeight = qWeight; this.scorer = scorer; this.readerContext = readerContext; this.vals = vs.GetValues(weight.fcontext, readerContext); }
/// <exception cref="IOException"/> public AllScorer(FunctionQuery outerInstance, AtomicReaderContext context, IBits acceptDocs, FunctionWeight w, float qWeight) : base(w) { this.outerInstance = outerInstance; this.weight = w; this.qWeight = qWeight; this.reader = context.Reader; this.maxDoc = reader.MaxDoc; this.acceptDocs = acceptDocs; vals = outerInstance.func.GetValues(weight.m_context, context); }
public override Explanation Explain(AtomicReaderContext readerContext, int doc) { Explanation subQueryExpl = qWeight.Explain(readerContext, doc); if (!subQueryExpl.IsMatch) { return(subQueryExpl); } FunctionValues vals = outerInstance.boostVal.GetValues(fcontext, readerContext); float sc = subQueryExpl.Value * vals.SingleVal(doc); Explanation res = new ComplexExplanation(true, sc, outerInstance.ToString() + ", product of:"); res.AddDetail(subQueryExpl); res.AddDetail(vals.Explain(doc)); return(res); }
public ValueFillerAnonymousInnerClassHelper(FunctionValues outerInstance) { this.outerInstance = outerInstance; mval = new MutableValueSingle(); }
public override FieldComparer SetNextReader(AtomicReaderContext context) { docVals = outerInstance.GetValues(fcontext, context); return(this); }
public AnonymousValueSourceScorer(IndexReader reader, FunctionValues functionValues, Func <int, bool> matchesValue) : base(reader, functionValues) { this.matchesValue = matchesValue ?? throw new ArgumentNullException(nameof(matchesValue)); }