public final class SynonymTokenFilter extends TokenFilter
Constructor and Description |
---|
SynonymTokenFilter(String name,
List<String> synonyms)
Constructor of
TokenFilter . |
Modifier and Type | Method and Description |
---|---|
Boolean |
getExpand()
Get the expand property: A value indicating whether all words in the
list of synonyms (if => notation is not used) will map to one
another.
|
List<String> |
getSynonyms()
Get the synonyms property: A list of synonyms in following one of two
formats: 1.
|
Boolean |
isCaseIgnored()
Get the ignoreCase property: A value indicating whether to case-fold
input for matching.
|
SynonymTokenFilter |
setCaseIgnored(Boolean caseIgnored)
Set the ignoreCase property: A value indicating whether to case-fold
input for matching.
|
SynonymTokenFilter |
setExpand(Boolean expand)
Set the expand property: A value indicating whether all words in the
list of synonyms (if => notation is not used) will map to one
another.
|
getName
public SynonymTokenFilter(String name, List<String> synonyms)
TokenFilter
.name
- The name of the token filter. It must only contain letters, digits,
spaces, dashes or underscores, can only start and end with alphanumeric
characters, and is limited to 128 characters.synonyms
- A list of synonyms in following one of two formats:
public List<String> getSynonyms()
public Boolean isCaseIgnored()
public SynonymTokenFilter setCaseIgnored(Boolean caseIgnored)
caseIgnored
- the ignoreCase value to set.public Boolean getExpand()
public SynonymTokenFilter setExpand(Boolean expand)
expand
- the expand value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.