Fragmenter fragmenter = new SimpleFragmenter(5);
highlighter.setTextFragmenter(fragmenter);
Analyzer a = new KoreanAnalyzer(false);
TokenStream tokenStream = a.tokenStream("f", new StringReader(text));
String result =
highlighter.getBestFragments(tokenStream, text,2, "...");
a.close();