younifyd
Menu

Indexers Create Or Update

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

PUT/indexers('{indexerName}')

Use it in a workflow

  1. Add a step and choose the Azure AI Search connector.
  2. Pick the Indexers Create Or Update action (under Service).
  3. Fill in the fields below, then reference the result from later steps as {{indexersCreateOrUpdate.response.data}}.

Request

Path parameters

indexerNamestringrequired

The name of the indexer to create or update.

Headers

If-Matchstring

Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value.

If-None-Matchstring

Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.

Preferstringrequired

For HTTP PUT requests, instructs the service to return the created/updated resource on success.

One ofreturn=representation

Request body

Enter the body as JSON in the step's Body field.

namestringrequired

The name of the indexer.

descriptionstring

The description of the indexer.

dataSourceNamestringrequired

The name of the datasource from which this indexer reads data.

skillsetNamestring

The name of the skillset executing with this indexer.

targetIndexNamestringrequired

The name of the index to which this indexer writes data.

scheduleobject

Represents a schedule for indexer execution.

intervalstring (duration)required

The interval of time between indexer executions.

startTimestring (date-time)

The time when an indexer should start running.

parametersobject

Represents parameters for indexer execution.

batchSizeinteger (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.

maxFailedItemsinteger (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.

Default 0

maxFailedItemsPerBatchinteger (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.

Default 0

configurationobject16 fields

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

fieldMappingsarray<object>

Defines mappings between fields in the data source and corresponding target fields in the index.

sourceFieldNamestringrequired

The name of the field in the data source.

targetFieldNamestring

The name of the target field in the index. Same as the source field name by default.

mappingFunctionobject2 fields

Represents a function that transforms a value from a data source before indexing.

outputFieldMappingsarray<object>

Output field mappings are applied after enrichment and immediately before indexing.

sourceFieldNamestringrequired

The name of the field in the data source.

targetFieldNamestring

The name of the target field in the index. Same as the source field name by default.

mappingFunctionobject2 fields

Represents a function that transforms a value from a data source before indexing.

disabledboolean

A value indicating whether the indexer is disabled. Default is false.

Default false

@odata.etagstring

The ETag of the indexer.

encryptionKeyobject

A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be used to encrypt or decrypt data-at-rest, such as indexes and synonym maps.

keyVaultKeyNamestringrequired

The name of your Azure Key Vault key to be used to encrypt your data at rest.

keyVaultKeyVersionstringrequired

The version of your Azure Key Vault key to be used to encrypt your data at rest.

keyVaultUristringrequired

The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest. An example URI might be `https://my-keyvault-name.vault.azure.net`.

accessCredentialsobject2 fields

Credentials of a registered application created for your search service, used for authenticated access to the encryption keys stored in Azure Key Vault.

json
{
  "name": "string",
  "dataSourceName": "string",
  "targetIndexName": "string",
  "description": "string",
  "skillsetName": "string",
  "schedule": {
    "interval": "string",
    "startTime": "2025-01-01T00:00:00Z"
  },
  "parameters": {
    "batchSize": 0,
    "maxFailedItems": 0,
    "maxFailedItemsPerBatch": 0,
    "configuration": {
      "parsingMode": "default",
      "excludedFileNameExtensions": "",
      "indexedFileNameExtensions": "",
      "failOnUnsupportedContentType": false,
      "failOnUnprocessableDocument": false,
      "indexStorageMetadataOnlyForOversizedDocuments": false,
      "delimitedTextHeaders": "string",
      "delimitedTextDelimiter": "string",
      "firstLineContainsHeaders": true,
      "documentRoot": "string",
      "dataToExtract": "contentAndMetadata",
      "imageAction": "none"
    }
  },
  "fieldMappings": [
    {
      "sourceFieldName": "string",
      "targetFieldName": "string",
      "mappingFunction": {
        "name": "string",
        "parameters": {}
      }
    }
  ],
  "outputFieldMappings": [
    {
      "sourceFieldName": "string",
      "targetFieldName": "string",
      "mappingFunction": {
        "name": "string",
        "parameters": {}
      }
    }
  ],
  "disabled": false,
  "@odata.etag": "string",
  "encryptionKey": {
    "keyVaultKeyName": "string",
    "keyVaultKeyVersion": "string",
    "keyVaultUri": "string",
    "accessCredentials": {
      "applicationId": "string",
      "applicationSecret": "string"
    }
  }
}

Response

Returns 200 with a any. Read it in later steps with {{indexersCreateOrUpdate.response.data.<field>}}.

Need more? See the Azure AI Search guide for connection setup and behaviour shared by every action.