Exemple #1
0
 public ValueSourceSortField(ValueSource outerInstance, bool reverse)
     : base(outerInstance.Description, SortField.Type_e.REWRITEABLE, reverse)
 {
     this.outerInstance = outerInstance;
 }
Exemple #2
0
 internal ValueSourceComparator(ValueSource outerInstance, IDictionary fcontext, int numHits)
 {
     this.outerInstance = outerInstance;
     this.fcontext      = fcontext;
     values             = new double[numHits];
 }
Exemple #3
0
 public ValueSourceComparatorSource(ValueSource outerInstance, IDictionary context)
 {
     this.outerInstance = outerInstance;
     this.context       = context;
 }
Exemple #4
0
 /// <param name="func"> defines the function to be used for scoring </param>
 public FunctionQuery(ValueSource func)
 {
     this.func = func;
 }
Exemple #5
0
        private readonly ValueSource boostVal; // optional, can be null

        public BoostedQuery(Query subQuery, ValueSource boostVal)
        {
            this.q        = subQuery;
            this.boostVal = boostVal;
        }
Exemple #6
0
 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);
 }