SearchModelFactory.IndexingParameters Method

Definition

Represents parameters for indexer execution.

public static Azure.Search.Documents.Indexes.Models.IndexingParameters IndexingParameters(int? batchSize = default, int? maxFailedItems = default, int? maxFailedItemsPerBatch = default, Azure.Search.Documents.Indexes.Models.IndexingParametersConfiguration indexingParametersConfiguration = default);
static member IndexingParameters : Nullable<int> * Nullable<int> * Nullable<int> * Azure.Search.Documents.Indexes.Models.IndexingParametersConfiguration -> Azure.Search.Documents.Indexes.Models.IndexingParameters
Public Shared Function IndexingParameters (Optional batchSize As Nullable(Of Integer) = Nothing, Optional maxFailedItems As Nullable(Of Integer) = Nothing, Optional maxFailedItemsPerBatch As Nullable(Of Integer) = Nothing, Optional indexingParametersConfiguration As IndexingParametersConfiguration = Nothing) As IndexingParameters

Parameters

batchSize
Nullable<Int32>

The number of items that are read from the data source and indexed as a single batch in order to improve performance. The default depends on the data source type.

maxFailedItems
Nullable<Int32>

The maximum number of items that can fail indexing for indexer execution to still be considered successful. -1 means no limit. Default is 0.

maxFailedItemsPerBatch
Nullable<Int32>

The maximum number of items in a single batch that can fail indexing for the batch to still be considered successful. -1 means no limit. Default is 0.

indexingParametersConfiguration
IndexingParametersConfiguration

A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type.

Returns

A new IndexingParameters instance for mocking.

Applies to