Class IndexDocumentsOptions
java.lang.Object
com.azure.search.documents.models.IndexDocumentsOptions
Options for document index operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetThrowOnAnyError
(boolean throwOnAnyError) Sets whether an exception is thrown if any operation in a batch fails.boolean
Returns whether an exception will be thrown if any operation in the batch fails.
-
Constructor Details
-
IndexDocumentsOptions
public IndexDocumentsOptions()
-
-
Method Details
-
throwOnAnyError
public boolean throwOnAnyError()Returns whether an exception will be thrown if any operation in the batch fails.Default value is
true
.- Returns:
- Flag indicating if an exception will be thrown if any operation in the batch fails.
-
setThrowOnAnyError
Sets whether an exception is thrown if any operation in a batch fails.Default value is
true
.- Parameters:
throwOnAnyError
- Flag indicating whether to throw on batch operation failure.- Returns:
- The updated IndexDocumentsOptions object.
-