示例#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;
 }