예제 #1
0
 /// <param name="func"> defines the function to be used for scoring </param>
 public FunctionQuery(ValueSource func)
 {
     this.func = func;
 }
예제 #2
0
        private readonly ValueSource boostVal; // optional, can be null

        public BoostedQuery(Query subQuery, ValueSource boostVal)
        {
            this.q        = subQuery;
            this.boostVal = boostVal;
        }
예제 #3
0
 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);
 }
예제 #4
0
 public ValueSourceSortField(ValueSource outerInstance, bool reverse)
     : base(outerInstance.GetDescription(), SortFieldType.REWRITEABLE, reverse)
 {
     this.outerInstance = outerInstance;
 }
예제 #5
0
 internal ValueSourceComparer(ValueSource outerInstance, IDictionary fcontext, int numHits)
 {
     this.outerInstance = outerInstance;
     this.fcontext      = fcontext;
     values             = new double[numHits];
 }
예제 #6
0
 public ValueSourceComparerSource(ValueSource outerInstance, IDictionary context)
 {
     this.outerInstance = outerInstance;
     this.context       = context;
 }