public final class StopwordsTokenFilter extends TokenFilter
Constructor and Description |
---|
StopwordsTokenFilter(String name)
Constructor of
StopwordsTokenFilter . |
Modifier and Type | Method and Description |
---|---|
Boolean |
areTrailingStopWordsRemoved()
Get the removeTrailingStopWords property: A value indicating whether to
ignore the last search term if it's a stop word.
|
List<String> |
getStopwords()
Get the stopwords property: The list of stopwords.
|
StopwordsList |
getStopwordsList()
Get the stopwordsList property: A predefined list of stopwords to use.
|
Boolean |
isCaseIgnored()
Get the ignoreCase property: A value indicating whether to ignore case.
|
StopwordsTokenFilter |
setCaseIgnored(Boolean caseIgnored)
Set the ignoreCase property: A value indicating whether to ignore case.
|
StopwordsTokenFilter |
setStopwords(List<String> stopwords)
Set the stopwords property: The list of stopwords.
|
StopwordsTokenFilter |
setStopwords(String... stopwords)
Set the stopwords property: The list of stopwords.
|
StopwordsTokenFilter |
setStopwordsList(StopwordsList stopwordsList)
Set the stopwordsList property: A predefined list of stopwords to use.
|
StopwordsTokenFilter |
setTrailingStopWordsRemoved(Boolean trailingStopWordsRemoved)
Set the removeTrailingStopWords property: A value indicating whether to
ignore the last search term if it's a stop word.
|
getName
public StopwordsTokenFilter(String name)
StopwordsTokenFilter
.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.public List<String> getStopwords()
public StopwordsTokenFilter setStopwords(String... stopwords)
stopwords
- the stopwords value to set.public StopwordsTokenFilter setStopwords(List<String> stopwords)
stopwords
- the stopwords value to set.public StopwordsList getStopwordsList()
public StopwordsTokenFilter setStopwordsList(StopwordsList stopwordsList)
stopwordsList
- the stopwordsList value to set.public Boolean isCaseIgnored()
public StopwordsTokenFilter setCaseIgnored(Boolean caseIgnored)
caseIgnored
- the ignoreCase value to set.public Boolean areTrailingStopWordsRemoved()
public StopwordsTokenFilter setTrailingStopWordsRemoved(Boolean trailingStopWordsRemoved)
trailingStopWordsRemoved
- the removeTrailingStopWords value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.