Lucene.Net.Analysis.Ckb.SoraniAnalyzer.CreateComponents C# (CSharp) Method

CreateComponents() public method

Creates a org.apache.lucene.analysis.Analyzer.TokenStreamComponents which tokenizes all the text in the provided Reader.
public CreateComponents ( string fieldName, TextReader reader ) : TokenStreamComponents
fieldName string
reader TextReader
return TokenStreamComponents
        public override TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
        {
            Tokenizer source = new StandardTokenizer(matchVersion, reader);
            TokenStream result = new StandardFilter(matchVersion, source);
            result = new SoraniNormalizationFilter(result);
            result = new LowerCaseFilter(matchVersion, result);
            result = new StopFilter(matchVersion, result, stopwords);
            if (stemExclusionSet.Count > 0)
            {
                result = new SetKeywordMarkerFilter(result, stemExclusionSet);
            }
            result = new SoraniStemFilter(result);
            return new TokenStreamComponents(source, result);
        }
    }