SearchModelFactory.IndexingResult(String, String, Boolean, Int32) 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 IndexingResult.
public static Azure.Search.Documents.Models.IndexingResult IndexingResult (string key, string errorMessage, bool succeeded, int status);
static member IndexingResult : string * string * bool * int -> Azure.Search.Documents.Models.IndexingResult
Public Shared Function IndexingResult (key As String, errorMessage As String, succeeded As Boolean, status As Integer) As IndexingResult
Parameters
- key
- String
The key of a document that was in the indexing request.
- errorMessage
- String
The error message explaining why the indexing operation failed for the document identified by the key; null if indexing succeeded.
- succeeded
- Boolean
A value indicating whether the indexing operation succeeded for the document identified by the key.
- status
- Int32
The status code of the indexing operation. Possible values include: 200 for a successful update or delete, 201 for successful document creation, 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.
Returns
A new IndexingResult instance for mocking.
Applies to
Azure SDK for .NET