/// <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; }
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); }
public ValueSourceSortField(ValueSource outerInstance, bool reverse) : base(outerInstance.GetDescription(), SortFieldType.REWRITEABLE, reverse) { this.outerInstance = outerInstance; }
internal ValueSourceComparer(ValueSource outerInstance, IDictionary fcontext, int numHits) { this.outerInstance = outerInstance; this.fcontext = fcontext; values = new double[numHits]; }
public ValueSourceComparerSource(ValueSource outerInstance, IDictionary context) { this.outerInstance = outerInstance; this.context = context; }