public QueryDocValues(QueryValueSource vs, AtomicReaderContext readerContext, IDictionary fcontext) : base(vs) { this.readerContext = readerContext; this.acceptDocs = readerContext.AtomicReader.LiveDocs; this.defVal = vs.defVal; this.q = vs.q; this.fcontext = fcontext; Weight w = fcontext == null ? null : (Weight)fcontext[vs]; if (w == null) { IndexSearcher weightSearcher; if (fcontext == null) { weightSearcher = new IndexSearcher(ReaderUtil.GetTopLevelContext(readerContext)); } else { weightSearcher = (IndexSearcher)fcontext["searcher"]; if (weightSearcher == null) { weightSearcher = new IndexSearcher(ReaderUtil.GetTopLevelContext(readerContext)); } } vs.CreateWeight(fcontext, weightSearcher); w = (Weight)fcontext[vs]; } weight = w; }
internal int scorerDoc; // the document the scorer is on #endregion Fields #region Constructors public QueryDocValues(QueryValueSource vs, AtomicReaderContext readerContext, IDictionary fcontext) : base(vs) { this.readerContext = readerContext; this.acceptDocs = readerContext.AtomicReader.LiveDocs; this.defVal = vs.defVal; this.q = vs.q; this.fcontext = fcontext; Weight w = fcontext == null ? null : (Weight)fcontext[vs]; if (w == null) { IndexSearcher weightSearcher; if (fcontext == null) { weightSearcher = new IndexSearcher(ReaderUtil.GetTopLevelContext(readerContext)); } else { weightSearcher = (IndexSearcher)fcontext["searcher"]; if (weightSearcher == null) { weightSearcher = new IndexSearcher(ReaderUtil.GetTopLevelContext(readerContext)); } } vs.CreateWeight(fcontext, weightSearcher); w = (Weight)fcontext[vs]; } weight = w; }