SearchModelFactory.SearchIndexerError Method

Definition

Initializes a new instance of SearchIndexerError.

C#
public static Azure.Search.Documents.Indexes.Models.SearchIndexerError SearchIndexerError(string key, string errorMessage, int statusCode, string name, string details, string documentationLink);

Parameters

key
String

The key of the item for which indexing failed.

errorMessage
String

The message describing the error that occurred while processing the item.

statusCode
Int32

The status code indicating why the indexing operation failed. Possible values include: 400 for a malformed input document, 404 for document not found, 409 for a version conflict, 422 when the index is temporarily unavailable, or 503 for when the service is too busy.

name
String

The name of the source at which the error originated. For example, this could refer to a particular skill in the attached skillset. This may not be always available.

details
String

Additional, verbose details about the error to assist in debugging the indexer. This may not be always available.

documentationLink
String

A link to a troubleshooting guide for these classes of errors. This may not be always available.

Returns

A new SearchIndexerError instance for mocking.

Applies to

Product Versions
Azure SDK for .NET Latest, Preview