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)

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
System.String

The name of the synonym map.

reader
System.IO.TextReader

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

Exceptions

System.ArgumentException

name is an empty string.

System.ArgumentNullException

name or reader is null.

Applies to

SynonymMap(String, String)

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
System.String

The name of the synonym map.

synonyms
System.String

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

Exceptions

System.ArgumentException

name or synonyms is an empty string.

System.ArgumentNullException

name or synonyms is null.

Applies to