public final class InternalAnalyzerUtils extends Object
AnalyzerUtils
is.Modifier and Type | Method and Description |
---|---|
static String |
analyzeSortableValue(org.apache.lucene.analysis.Analyzer analyzer,
String fieldName,
String text)
Returns the first token resulting from the analysis, logging a warning if there are more than one token.
|
public static String analyzeSortableValue(org.apache.lucene.analysis.Analyzer analyzer, String fieldName, String text)
analyzer
- the Lucene analyzer to usefieldName
- the name of the field: might affect the analyzer behaviortext
- the value to analyzeSearchException
- if a problem occurs when analyzing the sortable field's value.Copyright © 2006–2017 Hibernate. All rights reserved.