Class IndexDocumentsOptions
- java.lang.Object
-
- com.azure.search.documents.models.IndexDocumentsOptions
-
public class IndexDocumentsOptions extends Object
Options for document index operations.
-
-
Constructor Summary
Constructors Constructor Description IndexDocumentsOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexDocumentsOptions
setThrowOnAnyError(boolean throwOnAnyError)
Sets whether an exception is thrown if any operation in a batch fails.boolean
throwOnAnyError()
Returns whether an exception will be thrown if any operation in the batch fails.
-
-
-
Method Detail
-
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
public IndexDocumentsOptions setThrowOnAnyError(boolean throwOnAnyError)
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.
-
-