Class IndexDocumentsOptions

java.lang.Object
com.azure.search.documents.models.IndexDocumentsOptions

public class IndexDocumentsOptions extends Object
Options for document index operations.
  • 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

      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.