public final class KeepTokenFilter extends TokenFilter
Constructor and Description |
---|
KeepTokenFilter(String name,
List<String> keepWords)
Constructor of
TokenFilter . |
Modifier and Type | Method and Description |
---|---|
Boolean |
areLowerCaseKeepWords()
Get the lowerCaseKeepWords property: A value indicating whether to lower
case all words first.
|
List<String> |
getKeepWords()
Get the keepWords property: The list of words to keep.
|
KeepTokenFilter |
setLowerCaseKeepWords(Boolean lowerCaseKeepWords)
Set the lowerCaseKeepWords property: A value indicating whether to lower
case all words first.
|
getName
public KeepTokenFilter(String name, List<String> keepWords)
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.keepWords
- The list of words to keep.public List<String> getKeepWords()
public Boolean areLowerCaseKeepWords()
public KeepTokenFilter setLowerCaseKeepWords(Boolean lowerCaseKeepWords)
lowerCaseKeepWords
- the lowerCaseKeepWords value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.