本文整理了Java中org.apache.lucene.analysis.Analyzer.initReaderForNormalization()
方法的一些代码示例,展示了Analyzer.initReaderForNormalization()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.initReaderForNormalization()
方法的具体详情如下:
包路径:org.apache.lucene.analysis.Analyzer
类名称:Analyzer
方法名:initReaderForNormalization
[英]Wrap the given Reader with CharFilters that make sense for normalization. This is typically a subset of the CharFilters that are applied in #initReader(String,Reader). This is used by #normalize(String,String).
[中]用对规范化有意义的字符过滤器包装给定的读取器。这通常是在#initReader(String,Reader)中应用的字符过滤器的子集。这是由#normalize(String,String)使用的。
代码示例来源:origin: org.apache.lucene/lucene-core
@Override
protected final Reader initReaderForNormalization(String fieldName, Reader reader) {
return getWrappedAnalyzer(fieldName).initReaderForNormalization(fieldName, wrapReaderForNormalization(fieldName, reader));
}
代码示例来源:origin: org.apache.lucene/lucene-core
Reader filterReader = initReaderForNormalization(fieldName, reader);
char[] buffer = new char[64];
StringBuilder builder = new StringBuilder();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene
@Override
protected final Reader initReaderForNormalization(String fieldName, Reader reader) {
return getWrappedAnalyzer(fieldName).initReaderForNormalization(fieldName, wrapReaderForNormalization(fieldName, reader));
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.lucene
Reader filterReader = initReaderForNormalization(fieldName, reader);
char[] buffer = new char[64];
StringBuilder builder = new StringBuilder();
内容来源于网络,如有侵权,请联系作者删除!