本文整理汇总了Java中org.apache.lucene.analysis.fr.FrenchAnalyzer.DEFAULT_ARTICLES属性的典型用法代码示例。如果您正苦于以下问题:Java FrenchAnalyzer.DEFAULT_ARTICLES属性的具体用法?Java FrenchAnalyzer.DEFAULT_ARTICLES怎么用?Java FrenchAnalyzer.DEFAULT_ARTICLES使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.apache.lucene.analysis.fr.FrenchAnalyzer
的用法示例。
在下文中一共展示了FrenchAnalyzer.DEFAULT_ARTICLES属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: inform
@Override
public void inform(ResourceLoader loader) throws IOException {
if (articlesFile == null) {
articles = FrenchAnalyzer.DEFAULT_ARTICLES;
} else {
articles = getWordSet(loader, articlesFile, ignoreCase);
}
}
示例2: testEmptyTerm
public void testEmptyTerm() throws IOException {
Analyzer a = new Analyzer() {
@Override
protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
Tokenizer tokenizer = new KeywordTokenizer(reader);
return new TokenStreamComponents(tokenizer, new ElisionFilter(tokenizer, FrenchAnalyzer.DEFAULT_ARTICLES));
}
};
checkOneTerm(a, "", "");
}
示例3: inform
@Override
public void inform(ResourceLoader loader) throws IOException {
String articlesFile = args.get("articles");
boolean ignoreCase = getBoolean("ignoreCase", false);
if (articlesFile != null) {
articles = getWordSet(loader, articlesFile, ignoreCase);
}
if (articles == null) {
articles = FrenchAnalyzer.DEFAULT_ARTICLES;
}
}
示例4: testEmptyTerm
public void testEmptyTerm() throws IOException {
Analyzer a = new Analyzer() {
@Override
protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
Tokenizer tokenizer = new KeywordTokenizer(reader);
return new TokenStreamComponents(tokenizer, new ElisionFilter(tokenizer, FrenchAnalyzer.DEFAULT_ARTICLES));
}
};
checkOneTermReuse(a, "", "");
}