你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
IndexingResult Class
- java.
lang. Object - com.
azure. search. documents. models. IndexingResult
- com.
Implements
public final class IndexingResult
implements JsonSerializable<IndexingResult>, Serializable
Status of an indexing operation for a single document.
Constructor Summary
Constructor | Description |
---|---|
IndexingResult(String key, boolean succeeded, int statusCode) |
Creates an instance of Indexing |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Indexing |
fromJson(JsonReader jsonReader)
Reads an instance of Indexing |
String |
getErrorMessage()
Get the error |
String |
getKey()
Get the key property: The key of a document that was in the indexing request. |
int |
getStatusCode()
Get the status |
boolean |
isSucceeded()
Get the succeeded property: A value indicating whether the indexing operation succeeded for the document identified by the key. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
IndexingResult
public IndexingResult(String key, boolean succeeded, int statusCode)
Creates an instance of IndexingResult class.
Parameters:
Method Details
fromJson
public static IndexingResult fromJson(JsonReader jsonReader)
Reads an instance of IndexingResult from the JsonReader.
Parameters:
Returns:
Throws:
getErrorMessage
public String getErrorMessage()
Get the errorMessage property: The error message explaining why the indexing operation failed for the document identified by the key; null if indexing succeeded.
Returns:
getKey
public String getKey()
Get the key property: The key of a document that was in the indexing request.
Returns:
getStatusCode
public int getStatusCode()
Get the statusCode property: 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:
isSucceeded
public boolean isSucceeded()
Get the succeeded property: A value indicating whether the indexing operation succeeded for the document identified by the key.
Returns: