Class KeywordMarkerTokenFilter
java.lang.Object
com.azure.search.documents.indexes.models.TokenFilter
com.azure.search.documents.indexes.models.KeywordMarkerTokenFilter
Marks terms as keywords. This token filter is implemented using Apache
Lucene.
-
Constructor Summary
ConstructorsConstructorDescriptionKeywordMarkerTokenFilter
(String name, List<String> keywords) Constructor ofKeywordMarkerTokenFilter
. -
Method Summary
Modifier and TypeMethodDescriptionGet the keywords property: A list of words to mark as keywords.Get the ignoreCase property: A value indicating whether to ignore case.setCaseIgnored
(Boolean caseIgnored) Set the ignoreCase property: A value indicating whether to ignore case.Methods inherited from class com.azure.search.documents.indexes.models.TokenFilter
getName
-
Constructor Details
-
KeywordMarkerTokenFilter
Constructor ofKeywordMarkerTokenFilter
.- Parameters:
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.keywords
- A list of words to mark as keywords.
-
-
Method Details
-
getKeywords
Get the keywords property: A list of words to mark as keywords.- Returns:
- the keywords value.
-
isCaseIgnored
Get the ignoreCase property: A value indicating whether to ignore case. If true, all words are converted to lower case first. Default is false.- Returns:
- the ignoreCase value.
-
setCaseIgnored
Set the ignoreCase property: A value indicating whether to ignore case. If true, all words are converted to lower case first. Default is false.- Parameters:
caseIgnored
- the ignoreCase value to set.- Returns:
- the KeywordMarkerTokenFilter object itself.
-