public class Analyzers extends Object
TokenStream| Modifier and Type | Method and Description |
|---|---|
static List<String> |
analyze(org.apache.lucene.analysis.Analyzer analyzer,
String input)
Runs an input string through the given analyzer.
|
static String |
analyze(org.apache.lucene.analysis.Analyzer analyzer,
String input,
String separator)
Runs an input string through the given analyzer.
|
static List<Token> |
analyzeTokens(org.apache.lucene.analysis.Analyzer analyzer,
String input)
Runs an input string through the given analyzer and returns most available
attributes extracted.
|
public static String analyze(org.apache.lucene.analysis.Analyzer analyzer, String input, String separator) throws IOException
analyzer - Analyzer to be used.input - Input to analyze.separator - Split the input by this separator.IOExceptionpublic static List<String> analyze(org.apache.lucene.analysis.Analyzer analyzer, String input) throws IOException
analyzer - Analyzer to be used.input - Input to analyze.IOExceptionpublic static List<Token> analyzeTokens(org.apache.lucene.analysis.Analyzer analyzer, String input) throws IOException
analyzer - Analyzer to be used.input - Input to analyze.TokenIOExceptionCopyright © 2020. All rights reserved.