public final class ArticleNameAnalyzer
extends Analyzer
Analyzer implementation for analyzing article names, ids etc. This analyzer cuts at each whitespace
occurence as well as one of the following characters: ',' , ';' , '(', ')', '{', '}', '[', ']', '\'', '"' , '/', '\',
'!', '?'. This way it leaves strings including arbitrary letter-digit combinations untouched. Since it does not cut
at '-' or '_' common article numbers like 'HY4711-001' wont get split up. Please note that the analyzer works
case-insensitively by applying a LowerCaseFilter to the tokenized result.| Constructor and Description |
|---|
ArticleNameAnalyzer()
Creates a new analyzer instance which cuts each text at ' ', ',' , ';' , '(', ')', '{', '}', '[', ']', '\'', '"' ,
'/', '\', '!', '?'
|
ArticleNameAnalyzer(char[] tokenCharacters)
Creates a new analyzer which cuts each text at ' ' and each char specified.
|
| Modifier and Type | Method and Description |
|---|---|
protected TokenStreamComponents |
createComponents(String fieldName,
Reader reader) |
public ArticleNameAnalyzer()
public ArticleNameAnalyzer(char[] tokenCharacters)
tokenCharacters - a char array including all chars where to cut the textCopyright © 2017 SAP SE. All Rights Reserved.