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); }
/// <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); }