Пример #1
0
 public BoostedWeight(BoostedQuery outerInstance, IndexSearcher searcher)
 {
     this.outerInstance = outerInstance;
     //this.searcher = searcher; // LUCENENET: Never read
     this.qWeight  = outerInstance.q.CreateWeight(searcher);
     this.fcontext = ValueSource.NewContext(searcher);
     outerInstance.boostVal.CreateWeight(fcontext, searcher);
 }
Пример #2
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);
 }