public final class PatternAnalyzer extends LexicalAnalyzer
| Constructor and Description |
|---|
PatternAnalyzer(String name)
Constructor of
PatternAnalyzer. |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
areLowerCaseTerms()
Get the lowerCaseTerms property: A value indicating whether terms should
be lower-cased.
|
List<RegexFlags> |
getFlags()
Get the flags property: Regular expression flags.
|
String |
getPattern()
Get the pattern property: A regular expression pattern to match token
separators.
|
List<String> |
getStopwords()
Get the stopwords property: A list of stopwords.
|
PatternAnalyzer |
setFlags(List<RegexFlags> flags)
Set the flags property: Regular expression flags.
|
PatternAnalyzer |
setFlags(RegexFlags... flags)
Set the flags property: Regular expression flags.
|
PatternAnalyzer |
setLowerCaseTerms(Boolean lowerCaseTerms)
Set the lowerCaseTerms property: A value indicating whether terms should
be lower-cased.
|
PatternAnalyzer |
setPattern(String pattern)
Set the pattern property: A regular expression pattern to match token
separators.
|
PatternAnalyzer |
setStopwords(List<String> stopwords)
Set the stopwords property: A list of stopwords.
|
PatternAnalyzer |
setStopwords(String... stopwords)
Set the stopwords property: A list of stopwords.
|
getNamepublic PatternAnalyzer(String name)
PatternAnalyzer.name - The name of the analyzer. It must only contain letters, digits, spaces,
dashes or underscores, can only start and end with alphanumeric
characters, and is limited to 128 characters.public Boolean areLowerCaseTerms()
public PatternAnalyzer setLowerCaseTerms(Boolean lowerCaseTerms)
lowerCaseTerms - the lowerCaseTerms value to set.public String getPattern()
public PatternAnalyzer setPattern(String pattern)
pattern - the pattern value to set.public List<RegexFlags> getFlags()
public PatternAnalyzer setFlags(RegexFlags... flags)
flags - the flags value to set.public PatternAnalyzer setFlags(List<RegexFlags> flags)
flags - the flags value to set.public List<String> getStopwords()
public PatternAnalyzer setStopwords(String... stopwords)
stopwords - the stopwords value to set.public PatternAnalyzer setStopwords(List<String> stopwords)
stopwords - the stopwords value to set.Copyright © 2020 Microsoft Corporation. All rights reserved.