Lucene.Net.Analysis.Ru.RussianLightStemmer.Stem C# (CSharp) Method

Stem() public method

public Stem ( char s, int len ) : int
s char
len int
return int
        public virtual int Stem(char[] s, int len)
        {
            len = RemoveCase(s, len);
            return Normalize(s, len);
        }

Usage Example

Example #1
0
 public override bool IncrementToken()
 {
     if (input.IncrementToken())
     {
         if (!keywordAttr.Keyword)
         {
             int newlen = stemmer.Stem(termAtt.Buffer(), termAtt.Length);
             termAtt.Length = newlen;
         }
         return(true);
     }
     else
     {
         return(false);
     }
 }