SynonymTokenFilter Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SynonymTokenFilter() |
Initializes a new instance of the SynonymTokenFilter class. |
SynonymTokenFilter(String, IList<String>, Nullable<Boolean>, Nullable<Boolean>) |
Initializes a new instance of the SynonymTokenFilter class. |
SynonymTokenFilter()
- Source:
- SynonymTokenFilter.cs
Initializes a new instance of the SynonymTokenFilter class.
public SynonymTokenFilter ();
Public Sub New ()
Applies to
SynonymTokenFilter(String, IList<String>, Nullable<Boolean>, Nullable<Boolean>)
- Source:
- SynonymTokenFilter.cs
Initializes a new instance of the SynonymTokenFilter class.
public SynonymTokenFilter (string name, System.Collections.Generic.IList<string> synonyms, bool? ignoreCase = default, bool? expand = default);
new Microsoft.Azure.Search.Models.SynonymTokenFilter : string * System.Collections.Generic.IList<string> * Nullable<bool> * Nullable<bool> -> Microsoft.Azure.Search.Models.SynonymTokenFilter
Public Sub New (name As String, synonyms As IList(Of String), Optional ignoreCase As Nullable(Of Boolean) = Nothing, Optional expand As Nullable(Of Boolean) = Nothing)
Parameters
- name
- String
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.
A list of synonyms in following one of two formats: 1. incredible, unbelievable, fabulous => amazing - all terms on the left side of => symbol will be replaced with all terms on its right side; 2. incredible, unbelievable, fabulous, amazing - comma separated list of equivalent words. Set the expand option to change how this list is interpreted.
A value indicating whether to case-fold input for matching. Default is false.
A value indicating whether all words in the list of synonyms (if => notation is not used) will map to one another. If true, all words in the list of synonyms (if => notation is not used) will map to one another. The following list: incredible, unbelievable, fabulous, amazing is equivalent to: incredible, unbelievable, fabulous, amazing => incredible, unbelievable, fabulous, amazing. If false, the following list: incredible, unbelievable, fabulous, amazing will be equivalent to: incredible, unbelievable, fabulous, amazing => incredible. Default is true.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for