Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 2.36 KB

File metadata and controls

45 lines (33 loc) · 2.36 KB

CognitiveSearch Extension

This extension is built to facilitate both a data Source and Sink for the migration tool to be able to read and write to Azure Cognitive Search Index.

Note: When specifying the CognitiveSearch extension as the Source or Sink property in configuration, utilize the name CognitiveSearch.

Configuration Settings

The CognitiveSearch has a couple required and optional settings for configuring the connection to the Cognitive Search Index you are connecting to.

The following are the required settings that must be defined for using either the data Source or Sink:

  • Endpoint - This defines the endpoint of Cognitive Search service. This is required.
  • ApiKey - The API key credential used to authenticate requests against the Search service. You need to use an admin key to perform Sink. This is required.
  • Index - This defines the name of the Index to connect to on the Cognitive Search Index. This is required.

Source

important: Only fields marked as retrievable will be output.

{
  "Endpoint": "https://<cognitive-search-resouce-name>.search.windows.net",
  "ApiKey": "<admin-key or query-key>",
  "Index": "example-index",
  "ODataFilter": "Rooms/any(room: room/BaseRate lt 200.0) and Rating ge 4"
}

Sink

{
  "Endpoint": "https://<cognitive-search-resouce-name>.search.windows.net",
  "ApiKey": "<admin-key>",
  "Index": "example-index",
  "BatchSize": "100",
  "IndexAction": "Upload"
}