/// <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;
		}
Esempio n. 2
0
 /// <summary>Builds an analyzer which removes words in the provided array. </summary>
 public StopAnalyzer(System.String[] stopWords)
 {
     this.stopWords = StopFilter.MakeStopSet(stopWords);
 }
Esempio n. 3
0
 /// <summary>Builds an analyzer which removes words in ENGLISH_STOP_WORDS. </summary>
 public StopAnalyzer()
 {
     stopWords = StopFilter.MakeStopSet(ENGLISH_STOP_WORDS);
 }