TokenStream ts = new StandardTokenizer(reader); ts = new StandardFilter(ts); ts = new ThaiWordFilter(ts); ts = new StopFilter(ts, StopAnalyzer.ENGLISH_STOP_WORDS); return ts;