SearchModelFactory.IndexerState Method

Definition

Represents all of the state that defines and dictates the indexer's current execution.

public static Azure.Search.Documents.Indexes.Models.IndexerState IndexerState(Azure.Search.Documents.Indexes.Models.IndexingMode? mode = default, string allDocsInitialTrackingState = default, string allDocsFinalTrackingState = default, string resetDocsInitialTrackingState = default, string resetDocsFinalTrackingState = default, string resyncInitialTrackingState = default, string resyncFinalTrackingState = 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 * string * string * seq<string> * seq<string> -> Azure.Search.Documents.Indexes.Models.IndexerState
Public Shared Function IndexerState (Optional mode As Nullable(Of IndexingMode) = Nothing, Optional allDocsInitialTrackingState As String = Nothing, Optional allDocsFinalTrackingState As String = Nothing, Optional resetDocsInitialTrackingState As String = Nothing, Optional resetDocsFinalTrackingState As String = Nothing, Optional resyncInitialTrackingState As String = Nothing, Optional resyncFinalTrackingState 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.

allDocsInitialTrackingState
String

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

allDocsFinalTrackingState
String

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

resetDocsInitialTrackingState
String

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

resetDocsFinalTrackingState
String

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

resyncInitialTrackingState
String

Change tracking state used when indexing starts on selective options from the datasource.

resyncFinalTrackingState
String

Change tracking state value when indexing finishes on selective options from 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