Class StemmerOverrideTokenFilter
- java.lang.Object
-
- com.azure.search.documents.indexes.models.TokenFilter
-
- com.azure.search.documents.indexes.models.StemmerOverrideTokenFilter
-
public final class StemmerOverrideTokenFilter extends TokenFilter
Provides the ability to override other stemming filters with custom dictionary-based stemming. Any dictionary-stemmed terms will be marked as keywords so that they will not be stemmed with stemmers down the chain. Must be placed before any stemming filters. This token filter is implemented using Apache Lucene.
-
-
Constructor Summary
Constructors Constructor Description StemmerOverrideTokenFilter(String name, List<String> rules)
Constructor ofStemmerOverrideTokenFilter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getRules()
Get the rules property: A list of stemming rules in the following format: "word => stem", for example: "ran => run".-
Methods inherited from class com.azure.search.documents.indexes.models.TokenFilter
getName
-
-
-
-
Constructor Detail
-
StemmerOverrideTokenFilter
public StemmerOverrideTokenFilter(String name, List<String> rules)
Constructor ofStemmerOverrideTokenFilter
.- 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.rules
- A list of stemming rules in the following format: "word =%3E stem", for example: "ran =%3E run".
-
-