Condividi tramite


SynonymMap Constructors

Definition

Overloads

SynonymMap(String, TextReader)

Initializes a new instance of the SynonymMap class.

SynonymMap(String, String)

Initializes a new instance of the SynonymMap class.

SynonymMap(String, TextReader)

Source:
SynonymMap.cs
Source:
SynonymMap.cs

Initializes a new instance of the SynonymMap class.

public SynonymMap (string name, System.IO.TextReader reader);
new Azure.Search.Documents.Indexes.Models.SynonymMap : string * System.IO.TextReader -> Azure.Search.Documents.Indexes.Models.SynonymMap
Public Sub New (name As String, reader As TextReader)

Parameters

name
String

The name of the synonym map.

reader
TextReader

A TextReader from which formatted synonyms are read. Because only the "solr" synonym map format is currently supported, these are values delimited by "\n".

Exceptions

name is an empty string.

name or reader is null.

Applies to

SynonymMap(String, String)

Source:
SynonymMap.cs
Source:
SynonymMap.cs

Initializes a new instance of the SynonymMap class.

public SynonymMap (string name, string synonyms);
new Azure.Search.Documents.Indexes.Models.SynonymMap : string * string -> Azure.Search.Documents.Indexes.Models.SynonymMap
Public Sub New (name As String, synonyms As String)

Parameters

name
String

The name of the synonym map.

synonyms
String

The formatted synonyms string to define. Because only the "solr" synonym map format is currently supported, these are values delimited by "\n".

Exceptions

name or synonyms is an empty string.

name or synonyms is null.

Applies to