Class PatternAnalyzer
java.lang.Object
com.azure.search.documents.indexes.models.LexicalAnalyzer
com.azure.search.documents.indexes.models.PatternAnalyzer
Flexibly separates text into terms via a regular expression pattern. This analyzer is implemented using Apache
Lucene.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the lowerCaseTerms property: A value indicating whether terms should be lower-cased.getFlags()
Get the flags property: Regular expression flags.Get the pattern property: A regular expression pattern to match token separators.Get the stopwords property: A list of stopwords.setFlags
(RegexFlags... flags) Set the flags property: Regular expression flags.setFlags
(List<RegexFlags> flags) Set the flags property: Regular expression flags.setLowerCaseTerms
(Boolean lowerCaseTerms) Set the lowerCaseTerms property: A value indicating whether terms should be lower-cased.setPattern
(String pattern) Set the pattern property: A regular expression pattern to match token separators.setStopwords
(String... stopwords) Set the stopwords property: A list of stopwords.setStopwords
(List<String> stopwords) Set the stopwords property: A list of stopwords.Methods inherited from class com.azure.search.documents.indexes.models.LexicalAnalyzer
getName
-
Constructor Details
-
PatternAnalyzer
Creates an instance of PatternAnalyzer class.- Parameters:
name
- the name value to set.
-
-
Method Details
-
areLowerCaseTerms
Get the lowerCaseTerms property: A value indicating whether terms should be lower-cased. Default is true.- Returns:
- the lowerCaseTerms value.
-
setLowerCaseTerms
Set the lowerCaseTerms property: A value indicating whether terms should be lower-cased. Default is true.- Parameters:
lowerCaseTerms
- the lowerCaseTerms value to set.- Returns:
- the PatternAnalyzer object itself.
-
getPattern
Get the pattern property: A regular expression pattern to match token separators. Default is an expression that matches one or more non-word characters.- Returns:
- the pattern value.
-
setPattern
Set the pattern property: A regular expression pattern to match token separators. Default is an expression that matches one or more non-word characters.- Parameters:
pattern
- the pattern value to set.- Returns:
- the PatternAnalyzer object itself.
-
getFlags
Get the flags property: Regular expression flags.- Returns:
- the flags value.
-
setFlags
Set the flags property: Regular expression flags.- Parameters:
flags
- the flags value to set.- Returns:
- the PatternAnalyzer object itself.
-
getStopwords
Get the stopwords property: A list of stopwords.- Returns:
- the stopwords value.
-
setStopwords
Set the stopwords property: A list of stopwords.- Parameters:
stopwords
- the stopwords value to set.- Returns:
- the PatternAnalyzer object itself.
-
setStopwords
Set the stopwords property: A list of stopwords.- Parameters:
stopwords
- the stopwords value to set.- Returns:
- the PatternAnalyzer object itself.
-
setFlags
Set the flags property: Regular expression flags.- Parameters:
flags
- the flags value to set.- Returns:
- the PatternAnalyzer object itself.
-