com.groupdocs.search.options

Class IndexingOptions



  • public class IndexingOptions
    extends Object

    Provides options for indexing operation.

    Learn more

    • Constructor Detail

      • IndexingOptions

        public IndexingOptions()

        Initializes a new instance of the IndexingOptions class.

    • Method Detail

      • getThreads

        public final int getThreads()

        Gets the number of threads used for indexing. The default value is 1.

        Returns:
        The number of threads used for indexing.
      • setThreads

        public final void setThreads(int value)

        Sets the number of threads used for indexing. The default value is 1.

        Parameters:
        value - The number of threads used for indexing.
      • isAsync

        public final boolean isAsync()

        Gets the flag of asynchronous performing the operation. The default value is false.

        Returns:
        The flag of asynchronous performing the operation.
      • setAsync

        public final void setAsync(boolean value)

        Sets the flag of asynchronous performing the operation. The default value is false.

        Parameters:
        value - The flag of asynchronous performing the operation.
      • getCancellation

        public final Cancellation getCancellation()

        Gets the operation cancellation object. The default value is null.

        Returns:
        The operation cancellation object.
      • setCancellation

        public final void setCancellation(Cancellation value)

        Sets the operation cancellation object. The default value is null.

        Parameters:
        value - The operation cancellation object.
      • getMetadataIndexingOptions

        public final MetadataIndexingOptions getMetadataIndexingOptions()

        Gets the options for indexing metadata fields.

        Returns:
        The options for indexing metadata fields.