Share via


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);

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);

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