All Products
Search
Document Center

OpenSearch:Unsupported data sources

Last Updated:Apr 01, 2026

Open Search (Industry Algorithm Edition) does not natively manage MySQL, Object Storage Service (OSS), or DRDS (Distributed Relational Database Service) data sources. To index data from these sources, pass a JSON configuration object that describes the connection when you create or update your data source.

Each section below shows the expected JSON structure and describes every parameter.

MySQL

Use the following JSON structure to configure a MySQL data source.

Example

{
  "dbTableName": "my_table",
  "dbKey": "my_key",
  "dbAppName": "my_app_name",
  "dbUser": "my_account",
  "dbPassword": "my_pwd",
  "autoSync": "true",
  "filter": "id>100"
}

Parameters

ParameterTypeDescription
dbTableNameStringThe name of the table to read from.
dbKeyStringThe connection pool address used to connect to the database.
dbAppNameStringThe application name of the database.
dbUserStringThe account used to connect to the database.
dbPasswordStringThe password used to connect to the database.
autoSyncStringSpecifies whether to enable automatic data synchronization. Valid values: true, false.
filterStringFilter conditions applied when reading data. Supported operators: <, >, =, !=, >=, <=. Separate multiple conditions with commas.

OSS

Use the following JSON structure to configure an Object Storage Service (OSS) data source.

Example

{
  "ossBucketName": "test_name",
  "ossRecordType": "content",
  "ossBucketPrefix": "pre",
  "ossContentFormat": "json",
  "ossBucketLocation": "oss-cn-hangzhou",
  "autoSync": "true"
}

Parameters

ParameterTypeDescription
ossBucketNameStringThe name of the OSS bucket.
ossRecordTypeStringThe type of data to read from OSS. Valid values: content and meta.
ossBucketPrefixStringThe prefix of object names in the OSS bucket.
ossContentFormatStringThe format of the file content. Valid values: arbitrary, text, html, pdf, csv, xml, json, ppt, excel, word.
Note

Leave this parameter blank when ossRecordType is set to meta.

ossBucketLocationStringThe region where the OSS bucket resides. See supported values below.
autoSyncStringSpecifies whether to enable automatic data synchronization. Valid values: true, false.

Supported values for `ossBucketLocation`

ValueRegion
oss-cn-hangzhouChina (Hangzhou)
oss-cn-hongkongChina (Hong Kong)
oss-cn-shanghaiChina (Shanghai)
oss-us-west-1China (Chengdu)
oss-cn-shenzhenChina (Shenzhen)
oss-cn-qingdaoChina (Qingdao)
oss-cn-beijingChina (Beijing)
oss-ap-southeast-1Singapore (Singapore)

DRDS

Use the following JSON structure to configure a DRDS (Distributed Relational Database Service) data source.

Example

{
  "instanceId": "my_instance_id",
  "dbName": "my_db",
  "dbTableName": "my_table",
  "aliyunUserId": "123455789",
  "dbUser": "my_user",
  "dbPassword": "my_passwd",
  "autoSync": "true",
  "filter": "id>100"
}

Parameters

ParameterTypeDescription
instanceIdStringThe ID of the DRDS instance.
dbNameStringThe name of the database.
dbTableNameStringThe name of the table to read from.
aliyunUserIdStringThe ID of the Alibaba Cloud account.
dbUserStringThe account used to connect to the database.
dbPasswordStringThe password used to connect to the database.
autoSyncStringSpecifies whether to enable automatic data synchronization. Valid values: true, false.
filterStringFilter conditions applied when reading data. Supported operators: <, >, =, !=, >=, <=. Separate multiple conditions with commas.