Beispiel #1
0
        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));
        }
Beispiel #2
0
 /// <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));
 }
Beispiel #3
0
 protected internal virtual void  GatherSubReaders(System.Collections.IList allSubReaders, IndexReader r)
 {
     ReaderUtil.GatherSubReaders(allSubReaders, r);
 }
Beispiel #4
0
            public override Explanation Explain(int doc)
            {
                int n = ReaderUtil.SubIndex(doc, docStarts);

                return(docValues[n].Explain(doc - docStarts[n]));
            }
Beispiel #5
0
            public override System.String ToString(int doc)
            {
                int n = ReaderUtil.SubIndex(doc, docStarts);

                return(docValues[n].ToString(doc - docStarts[n]));
            }
Beispiel #6
0
            public override double DoubleVal(int doc)
            {
                int n = ReaderUtil.SubIndex(doc, docStarts);

                return(docValues[n].DoubleVal(doc - docStarts[n]));
            }
Beispiel #7
0
            public override long LongVal(int doc)
            {
                int n = ReaderUtil.SubIndex(doc, docStarts);

                return(docValues[n].LongVal(doc - docStarts[n]));
            }
Beispiel #8
0
            public override float FloatVal(int doc)
            {
                int n = ReaderUtil.SubIndex(doc, docStarts);

                return(docValues[n].FloatVal(doc - docStarts[n]));
            }