public final class SynonymTokenFilter extends TokenFilter
Constructor and Description |
---|
SynonymTokenFilter() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getSynonyms()
Get the synonyms property: A list of synonyms in following one of two
formats: 1.
|
Boolean |
isExpand()
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.
|
Boolean |
isIgnoreCase()
Get 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.
|
SynonymTokenFilter |
setIgnoreCase(Boolean ignoreCase)
Set the ignoreCase property: A value indicating whether to case-fold
input for matching.
|
SynonymTokenFilter |
setSynonyms(List<String> synonyms)
Set the synonyms property: A list of synonyms in following one of two
formats: 1.
|
getName, setName
public List<String> getSynonyms()
public SynonymTokenFilter setSynonyms(List<String> synonyms)
synonyms
- the synonyms value to set.public Boolean isIgnoreCase()
public SynonymTokenFilter setIgnoreCase(Boolean ignoreCase)
ignoreCase
- the ignoreCase value to set.public Boolean isExpand()
public SynonymTokenFilter setExpand(Boolean expand)
expand
- the expand value to set.Copyright © 2020 Microsoft Corporation. All rights reserved.