SynonymMap 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
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.