Exemplo n.º 1
0
 public FunctionWeight(FunctionQuery outerInstance, IndexSearcher searcher)
 {
     this.outerInstance = outerInstance;
     this.m_searcher    = searcher;
     this.m_context     = ValueSource.NewContext(searcher);
     outerInstance.func.CreateWeight(m_context, searcher);
 }
Exemplo n.º 2
0
 /// <exception cref="IOException"/>
 public AllScorer(FunctionQuery outerInstance, AtomicReaderContext context, IBits acceptDocs, FunctionWeight w, float qWeight)
     : base(w)
 {
     this.outerInstance = outerInstance;
     this.weight        = w;
     this.qWeight       = qWeight;
     this.reader        = context.Reader;
     this.maxDoc        = reader.MaxDoc;
     this.acceptDocs    = acceptDocs;
     vals = outerInstance.func.GetValues(weight.m_context, context);
 }