Megosztás a következőn keresztül:


SynonymTokenFilter(String, IEnumerable<String>) Constructor

Definition

Initializes a new instance of SynonymTokenFilter.

public SynonymTokenFilter (string name, System.Collections.Generic.IEnumerable<string> synonyms);
new Azure.Search.Documents.Indexes.Models.SynonymTokenFilter : string * seq<string> -> Azure.Search.Documents.Indexes.Models.SynonymTokenFilter
Public Sub New (name As String, synonyms As IEnumerable(Of String))

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.

synonyms
IEnumerable<String>

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.

Exceptions

name or synonyms is null.

Applies to