public final class CommonGramTokenFilter extends TokenFilter
Constructor and Description |
---|
CommonGramTokenFilter(String name,
List<String> commonWords)
Constructor of
TokenFilter . |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCommonWords()
Get the commonWords property: The set of common words.
|
Boolean |
isCaseIgnored()
Get the ignoreCase property: A value indicating whether common words
matching will be case insensitive.
|
Boolean |
isQueryModeUsed()
Get the useQueryMode property: A value that indicates whether the token
filter is in query mode.
|
CommonGramTokenFilter |
setCaseIgnored(Boolean caseIgnored)
Set the ignoreCase property: A value indicating whether common words
matching will be case insensitive.
|
CommonGramTokenFilter |
setQueryModeUsed(Boolean queryModeUsed)
Set the useQueryMode property: A value that indicates whether the token
filter is in query mode.
|
getName
public CommonGramTokenFilter(String name, List<String> commonWords)
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.commonWords
- The set of common words.public List<String> getCommonWords()
public Boolean isCaseIgnored()
public CommonGramTokenFilter setCaseIgnored(Boolean caseIgnored)
caseIgnored
- the ignoreCase value to set.public Boolean isQueryModeUsed()
public CommonGramTokenFilter setQueryModeUsed(Boolean queryModeUsed)
queryModeUsed
- the useQueryMode value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.