analyzer = new org.apache.lucene.analysis.de.GermanAnalyzer(Version.LUCENE_31);
} else if (langCode.startsWith("es")) {
analyzer = new org.apache.lucene.analysis.es.SpanishAnalyzer(Version.LUCENE_31);
} else {
if (stopwords != null && stopwords.size() > 0) {
analyzer = new EnglishAnalyzer(Version.LUCENE_31, stopwords, stem);
} else {
analyzer = new EnglishAnalyzer(Version.LUCENE_31, stem);
}
}
}
DataBag output = bagFactory.newDefaultBag();