public ValueSourceSortField(ValueSource outerInstance, bool reverse) : base(outerInstance.Description, SortField.Type_e.REWRITEABLE, reverse) { this.outerInstance = outerInstance; }
internal ValueSourceComparator(ValueSource outerInstance, IDictionary fcontext, int numHits) { this.outerInstance = outerInstance; this.fcontext = fcontext; values = new double[numHits]; }
public ValueSourceComparatorSource(ValueSource outerInstance, IDictionary context) { this.outerInstance = outerInstance; this.context = context; }
/// <param name="func"> defines the function to be used for scoring </param> public FunctionQuery(ValueSource func) { this.func = func; }
private readonly ValueSource boostVal; // optional, can be null public BoostedQuery(Query subQuery, ValueSource boostVal) { this.q = subQuery; this.boostVal = boostVal; }
private 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); }