public override Explanation Explain(Weight weight, int doc) { int n = ReaderUtil.SubIndex(doc, docStarts); int deBasedDoc = doc - docStarts[n]; return(weight.Explain(subReaders[n], deBasedDoc)); }
/// <summary>Returns index of the searcher for document <code>n</code> in the array /// used to construct this searcher. /// </summary> public virtual int SubSearcher(int n) { // find searcher for doc n: return(ReaderUtil.SubIndex(n, starts)); }
public override Explanation Explain(int doc) { int n = ReaderUtil.SubIndex(doc, docStarts); return(docValues[n].Explain(doc - docStarts[n])); }
public override System.String ToString(int doc) { int n = ReaderUtil.SubIndex(doc, docStarts); return(docValues[n].ToString(doc - docStarts[n])); }
public override double DoubleVal(int doc) { int n = ReaderUtil.SubIndex(doc, docStarts); return(docValues[n].DoubleVal(doc - docStarts[n])); }
public override long LongVal(int doc) { int n = ReaderUtil.SubIndex(doc, docStarts); return(docValues[n].LongVal(doc - docStarts[n])); }
public override float FloatVal(int doc) { int n = ReaderUtil.SubIndex(doc, docStarts); return(docValues[n].FloatVal(doc - docStarts[n])); }