Class IndexDocumentsOptions


  • public class IndexDocumentsOptions
    extends Object
    Options for document index operations.
    • Constructor Detail

      • IndexDocumentsOptions

        public IndexDocumentsOptions()
    • 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.