use of org.apache.jena.query.text.analyzer.QueryMultilingualAnalyzer in project jena by apache.
the class TextIndexLucene method getQueryAnalyzer.
private Analyzer getQueryAnalyzer(boolean usingSearchFor, String lang) {
if (usingSearchFor) {
Analyzer qa = multilingualQueryAnalyzers.get(lang);
if (qa == null) {
qa = new PerFieldAnalyzerWrapper(new QueryMultilingualAnalyzer(defaultAnalyzer, lang), analyzerPerField);
multilingualQueryAnalyzers.put(lang, qa);
}
return qa;
} else {
return queryAnalyzer;
}
}
Aggregations