SearchIndexerClient.createOrUpdateIndexer(SearchIndexer indexer) Method

Definition

Creates a new Azure Cognitive Search indexer or updates an indexer if it already exists.

Code Sample

Create or update search indexer named "searchIndexer".

{@codesnippet com.azure.search.documents.indexes.SearchIndexerClient.createOrUpdateIndexer#SearchIndexer}

public SearchIndexer createOrUpdateIndexer(SearchIndexer indexer)

Parameters

indexer
SearchIndexer

The definition of the indexer to create or update.

Returns

a response containing the created Indexer.

Applies to