Lucene.Net.Analysis.Br.BrazilianStemFilter.IncrementToken C# (CSharp) Method

IncrementToken() public method

public IncrementToken ( ) : bool
return bool
        public override bool IncrementToken()
        {
            if (input.IncrementToken())
            {
                string term = termAtt.ToString();
                // Check the exclusion table.
                if (!keywordAttr.Keyword && (exclusions == null || !exclusions.Contains(term)))
                {
                    string s = stemmer.Stem(term);
                    // If not stemmed, don't waste the time adjusting the token.
                    if ((s != null) && !s.Equals(term))
                    {
                        termAtt.SetEmpty().Append(s);
                    }
                }
                return true;
            }
            else
            {
                return false;
            }
        }
    }