EdgeNGramTokenFilter Class
Generates n-grams of the given size(s) starting from the front or the back of an input token. This token filter is implemented using Apache Lucene.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.search.documents.indexes._generated.models._models_py3.TokenFilterEdgeNGramTokenFilter
Constructor
EdgeNGramTokenFilter(*, name: str, min_gram: Optional[int] = 1, max_gram: Optional[int] = 2, side: Optional[Union[str, azure.search.documents.indexes._generated.models._search_client_enums.EdgeNGramTokenFilterSide]] = None, **kwargs)
Parameters
- odata_type
- str
Required. Identifies the concrete type of the token filter.Constant filled by server.
- name
- str
Required. 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.
- min_gram
- int
The minimum n-gram length. Default is 1. Must be less than the value of maxGram.
- side
- str or EdgeNGramTokenFilterSide
Specifies which side of the input the n-gram should be generated from. Default is "front". Possible values include: "front", "back".
Feedback
Submit and view feedback for