Package version:

Class to perform operations to manage (create, update, list/delete) indexers, datasources & skillsets.

Constructors

  • Creates an instance of SearchIndexerClient.

    Example usage:

    const { SearchIndexerClient, AzureKeyCredential } = require("@azure/search-documents");

    const client = new SearchIndexerClient(
    "<endpoint>",
    new AzureKeyCredential("<Admin Key>");
    );

    Parameters

    • endpoint: string

      The endpoint of the search service

    • credential: any

      Used to authenticate requests to the service.

    • options: SearchIndexerClientOptions = {}

      Used to configure the Search client.

    Returns SearchIndexerClient

Properties

apiVersion: string = utils.defaultServiceVersion

The API version to use when communicating with the service.

use {@Link serviceVersion} instead

endpoint: string

The endpoint of the search service

pipeline: Pipeline

A reference to the internal HTTP pipeline for use with raw requests

serviceVersion: string = utils.defaultServiceVersion

The API version to use when communicating with the service.

Methods

  • Retrieves information about an Indexer.

    Parameters

    • indexerName: string

      The name of the Indexer.

    • options: OperationOptions = {}

      Additional optional arguments.

    Returns Promise<SearchIndexer>

  • Returns the current status and execution history of an indexer.

    Parameters

    • indexerName: string

      The name of the indexer.

    • options: OperationOptions = {}

      Additional optional arguments.

    Returns Promise<SearchIndexerStatus>

  • Retrieves a list of names of existing data sources in the service.

    Parameters

    • options: OperationOptions = {}

      Options to the list indexers operation.

    Returns Promise<string[]>

  • Retrieves a list of names of existing indexers in the service.

    Parameters

    • options: OperationOptions = {}

      Options to the list indexers operation.

    Returns Promise<string[]>

  • Retrieves a list of names of existing Skillsets in the service.

    Parameters

    • options: OperationOptions = {}

      Options to the list Skillsets operation.

    Returns Promise<string[]>

  • Resets specific documents in the datasource to be selectively re-ingested by the indexer.

    Parameters

    • indexerName: string

      The name of the indexer to reset documents for.

    • options: ResetDocumentsOptions = {}

      Additional optional arguments.

    Returns Promise<void>

  • Resets the change tracking state associated with an indexer.

    Parameters

    • indexerName: string

      The name of the indexer to reset.

    • options: OperationOptions = {}

      Additional optional arguments.

    Returns Promise<void>

  • Reset an existing skillset in a search service.

    Parameters

    • skillsetName: string

      The name of the skillset to reset.

    • options: ResetSkillsOptions = {}

      The options parameters.

    Returns Promise<void>

  • Runs an indexer on-demand.

    Parameters

    • indexerName: string

      The name of the indexer to run.

    • options: OperationOptions = {}

      Additional optional arguments.

    Returns Promise<void>