org.apache.lucene.analysis.Analyzer.initReaderForNormalization()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(86)

本文整理了Java中org.apache.lucene.analysis.Analyzer.initReaderForNormalization()方法的一些代码示例,展示了Analyzer.initReaderForNormalization()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.initReaderForNormalization()方法的具体详情如下:
包路径:org.apache.lucene.analysis.Analyzer
类名称:Analyzer
方法名:initReaderForNormalization

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();

相关文章