Exemplo n.º 1
0
        /// <summary> Creates a TokenStream which tokenizes all the text in the provided Reader.
        ///
        /// </summary>
        /// <returns>  A TokenStream build from a RussianLetterTokenizer filtered with
        /// RussianLowerCaseFilter, StopFilter, and RussianStemFilter
        /// </returns>
        public override TokenStream TokenStream(System.String fieldName, System.IO.TextReader reader)
        {
            TokenStream result = new RussianLetterTokenizer(reader, charset);

            result = new RussianLowerCaseFilter(result, charset);
            result = new StopFilter(result, stopSet);
            result = new RussianStemFilter(result, charset);
            return(result);
        }
		/// <summary> Creates a TokenStream which tokenizes all the text in the provided Reader.
		/// 
		/// </summary>
		/// <returns>  A TokenStream build from a RussianLetterTokenizer filtered with
		/// RussianLowerCaseFilter, StopFilter, and RussianStemFilter
		/// </returns>
		public override TokenStream TokenStream(System.String fieldName, System.IO.TextReader reader)
		{
			TokenStream result = new RussianLetterTokenizer(reader, charset);
			result = new RussianLowerCaseFilter(result, charset);
			result = new StopFilter(result, stopSet);
			result = new RussianStemFilter(result, charset);
			return result;
		}