protected internal override sealed bool MatchDoc(int doc)
                {
                    int ord = Fcsi.GetOrd(doc);

                    if (ord == -1)
                    {
                        return(false);
                    }
                    return(TermSet.Get(ord));
                }
Exemple #2
0
 protected internal override AcceptStatus Accept(BytesRef term)
 {
     if (LiveTerms.Get(Ord()))
     {
         return(AcceptStatus.YES);
     }
     else
     {
         return(AcceptStatus.NO);
     }
 }
                protected internal override sealed bool MatchDoc(int doc)
                {
                    DocTermOrds.Document = doc;
                    long ord;

                    // TODO: we could track max bit set and early terminate (since they come in sorted order)
                    while ((ord = DocTermOrds.NextOrd()) != SortedSetDocValues.NO_MORE_ORDS)
                    {
                        if (TermSet.Get(ord))
                        {
                            return(true);
                        }
                    }
                    return(false);
                }
Exemple #4
0
 protected internal override AcceptStatus Accept(BytesRef term)
 {
     return(LiveTerms.Get(Ord()) ? AcceptStatus.YES : AcceptStatus.NO);
 }