SearchIndexClient.GetSynonymMap Method

Definition

Overloads

Name Description
GetSynonymMap(String, RequestContext)

[Protocol Method] Retrieves a synonym map definition.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetSynonymMap(String, CancellationToken)

Retrieves a synonym map definition.

GetSynonymMap(String, RequestContext)

Source:
SearchIndexClient.cs

[Protocol Method] Retrieves a synonym map definition.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response GetSynonymMap(string synonymMapName, Azure.RequestContext context);
abstract member GetSynonymMap : string * Azure.RequestContext -> Azure.Response
override this.GetSynonymMap : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetSynonymMap (synonymMapName As String, context As RequestContext) As Response

Parameters

synonymMapName
String

The name of the synonym map.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

synonymMapName is null.

synonymMapName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetSynonymMap(String, CancellationToken)

Source:
SearchIndexClient.cs
Source:
SearchIndexClient.cs

Retrieves a synonym map definition.

public virtual Azure.Response<Azure.Search.Documents.Indexes.Models.SynonymMap> GetSynonymMap(string synonymMapName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSynonymMap : string * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.Indexes.Models.SynonymMap>
override this.GetSynonymMap : string * System.Threading.CancellationToken -> Azure.Response<Azure.Search.Documents.Indexes.Models.SynonymMap>
Public Overridable Function GetSynonymMap (synonymMapName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SynonymMap)

Parameters

synonymMapName
String

The name of the synonym map.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

The Response<T> from the server containing the requested SynonymMap.

Exceptions

synonymMapName is null.

synonymMapName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to