/// <summary>Constructs a {@link StandardTokenizer} filtered by a {@link
		/// StandardFilter}, a {@link LowerCaseFilter} and a {@link StopFilter}. 
		/// </summary>
		public override TokenStream TokenStream(System.String fieldName, System.IO.TextReader reader)
		{
			TokenStream result = new StandardTokenizer(reader);
			result = new StandardFilter(result);
			result = new LowerCaseFilter(result);
			result = new StopFilter(result, stopSet);
			return result;
		}
Exemple #2
0
 /// <summary>Builds an analyzer which removes words in the provided array. </summary>
 public StopAnalyzer(System.String[] stopWords)
 {
     this.stopWords = StopFilter.MakeStopSet(stopWords);
 }
Exemple #3
0
 /// <summary>Builds an analyzer which removes words in ENGLISH_STOP_WORDS. </summary>
 public StopAnalyzer()
 {
     stopWords = StopFilter.MakeStopSet(ENGLISH_STOP_WORDS);
 }