다음을 통해 공유


SearchModelFactory.IndexerState Method

Definition

Initializes a new instance of IndexerState.

public static Azure.Search.Documents.Indexes.Models.IndexerState IndexerState (Azure.Search.Documents.Indexes.Models.IndexingMode? mode = default, string allDocumentsInitialChangeTrackingState = default, string allDocumentsFinalChangeTrackingState = default, string resetDocumentsInitialChangeTrackingState = default, string resetDocumentsFinalChangeTrackingState = default, System.Collections.Generic.IEnumerable<string> resetDocumentKeys = default, System.Collections.Generic.IEnumerable<string> resetDataSourceDocumentIds = default);
static member IndexerState : Nullable<Azure.Search.Documents.Indexes.Models.IndexingMode> * string * string * string * string * seq<string> * seq<string> -> Azure.Search.Documents.Indexes.Models.IndexerState
Public Shared Function IndexerState (Optional mode As Nullable(Of IndexingMode) = Nothing, Optional allDocumentsInitialChangeTrackingState As String = Nothing, Optional allDocumentsFinalChangeTrackingState As String = Nothing, Optional resetDocumentsInitialChangeTrackingState As String = Nothing, Optional resetDocumentsFinalChangeTrackingState As String = Nothing, Optional resetDocumentKeys As IEnumerable(Of String) = Nothing, Optional resetDataSourceDocumentIds As IEnumerable(Of String) = Nothing) As IndexerState

Parameters

mode
Nullable<IndexingMode>

The mode the indexer is running in.

allDocumentsInitialChangeTrackingState
String

Change tracking state used when indexing starts on all documents in the datasource.

allDocumentsFinalChangeTrackingState
String

Change tracking state value when indexing finishes on all documents in the datasource.

resetDocumentsInitialChangeTrackingState
String

Change tracking state used when indexing starts on select, reset documents in the datasource.

resetDocumentsFinalChangeTrackingState
String

Change tracking state value when indexing finishes on select, reset documents in the datasource.

resetDocumentKeys
IEnumerable<String>

The list of document keys that have been reset. The document key is the document's unique identifier for the data in the search index. The indexer will prioritize selectively re-ingesting these keys.

resetDataSourceDocumentIds
IEnumerable<String>

The list of datasource document ids that have been reset. The datasource document id is the unique identifier for the data in the datasource. The indexer will prioritize selectively re-ingesting these ids.

Returns

A new IndexerState instance for mocking.

Applies to