Lucene.Net.Search.TestMinShouldMatch2.SlowMinShouldMatchScorer.NextDoc C# (CSharp) Method

NextDoc() public method

public NextDoc ( ) : int
return int
            public override int NextDoc()
            {
                Debug.Assert(CurrentDoc != NO_MORE_DOCS);
                for (CurrentDoc = CurrentDoc + 1; CurrentDoc < MaxDoc; CurrentDoc++)
                {
                    CurrentMatched = 0;
                    Score_Renamed = 0;
                    Dv.Document = CurrentDoc;
                    long ord;
                    while ((ord = Dv.NextOrd()) != SortedSetDocValues.NO_MORE_ORDS)
                    {
                        if (Ords.Contains(ord))
                        {
                            CurrentMatched++;
                            Score_Renamed += Sims[(int)ord].Score(CurrentDoc, 1);
                        }
                    }
                    if (CurrentMatched >= MinNrShouldMatch)
                    {
                        return CurrentDoc;
                    }
                }
                return CurrentDoc = NO_MORE_DOCS;
            }