SearchModelFactory.SearchIndexerError Method
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.
Initializes a new instance of SearchIndexerError.
public static Azure.Search.Documents.Indexes.Models.SearchIndexerError SearchIndexerError (string key, string errorMessage, int statusCode, string name, string details, string documentationLink);
static member SearchIndexerError : string * string * int * string * string * string -> Azure.Search.Documents.Indexes.Models.SearchIndexerError
Public Shared Function SearchIndexerError (key As String, errorMessage As String, statusCode As Integer, name As String, details As String, documentationLink As String) As SearchIndexerError
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
Azure SDK for .NET