All Products
Search
Document Center

OpenSearch:ModifyIndex

Last Updated:Nov 05, 2025

Modifies an index.

Operation description

Method

PUT

URI

/openapi/ha3/instances/{instanceId}/indexes/{indexName}

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

searchengine:ModifyIndex

update

*Instance

acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}

None None

Request syntax

PUT /openapi/ha3/instances/{instanceId}/indexes/{indexName} HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

instanceId

string

Yes

The instance ID.

ha-cn-pl32rf0****

indexName

string

Yes

The index name.

test_api

dryRun

boolean

No

Specifies whether to perform a dry run. The default value is false.

Valid values:

  • true: Checks the validity of the request parameters without performing the operation.

  • false: Checks the validity of the request parameters and performs the operation.

true

body

object

No

The request body.

dataSourceInfo

object

No

Information about the data source. This parameter is required for new versions of Vector Search Edition.

buildMode

string

No

The method for rebuilding the index. Valid values: `api` (push data using an API) and `indexRecover` (recover data from an index).

api

generation

integer

No

The generation of the dump table when you recover data from an index.

1718698593

dataTimeSec

integer

No

The timestamp for incremental data synchronization.

1709715164

processPartitionCount

integer

No

The number of resources for data updates.

4

name

string

No

The data source name.

ha-cn-pl32rf0****_index_1

type

string

No

The type of the data source. Valid values: odps, swift, saro, oss, and unKnow.

odps

domain

string

No

The offline deployment.

vpc_hz_domain_1

config

object

No

The configuration of the ODPS data source.

endpoint

string

No

The endpoint of the ODPS data source.

http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api

accessKey

string

No

The AccessKey ID for the ODPS data source.

L***p

accessSecret

string

No

The AccessKey secret for the ODPS data source.

5**9a6

project

string

No

The name of the ODPS project.

bbt_algo_pai

partition

string

No

The ODPS partition. For example: `ds=20180102`.

ds=20230114

table

string

No

The name of the saro or ODPS table.

item

namespace

string

No

The namespace of the saro data source.

test-namespace

path

string

No

The path of the HDFS data source.

test-hdfs-path

ossPath

string

No

The path of the OSS data source.

/opensearch/oss.json

bucket

string

No

The OSS bucket.

test-bucket

format

string

No

The format of the files in the OSS bucket.

  • ha3

  • json

ha3

catalog

string

No

The ID of the data catalog for the Data Lake Formation (DLF) data source.

test-catalog

database

string

No

The database of the DLF data source.

test-database

tag

string

No

The tag of the DLF data source.

test-tag

tableFormat

string

No

The table format of the DLF data source.

paimon lance object

saroConfig

object

No

The configuration of the saro data source.

namespace

string

No

The namespace of the saro data source.

flink-test-fjx-default

tableName

string

No

The name of the saro data table.

device_event_shy_summary_

autoBuildIndex

boolean

No

Specifies whether to automatically trigger full indexing.

true

processParallelNum

integer

No

The number of concurrent full processing tasks.

2

partition

string

No

The partition of the ODPS data source. This parameter is required if the data source type is ODPS.

ds=20230114

ossDataPath

string

No

The path of the file that is used to rebuild the index from an OSS data source.

/opensearch/oss.json

description

string

No

The description.

"test"

content

string

No

The content of the file.

{\"summarys\":{\"summary_fields\":[\"id\"]},\"indexs\":[{\"index_name\":\"index_id\",\"index_type\":\"PRIMARYKEY64\",\"index_fields\":\"id\",\"has_primary_key_attribute\":true,\"is_primary_key_sorted\":false}],\"attributes\":[\"id\"],\"fields\":[{\"field_name\":\"id\",\"field_type\":\"UINT16\"}],\"table_name\":\"index_2\"}

partition

integer

No

The number of data shards.

2

dataSource

string

No

The data source.

ha-cn-pl32rf0****_index_1

domain

string

No

The data source deployment.

vpc_hz_domain_1

buildParallelNum

integer

No

The number of concurrent full build tasks.

2

mergeParallelNum

integer

No

The number of concurrent full merge tasks.

2

cluster

object

No

The cluster information.

object

No

The cluster information.

clusterConfigName

string

No

The name of the cluster.json file.

ha-cn-pl32rf0****@a-cn-pl32rf0****_test_api@hz_pre_vpc_domain_1@test_api@index_config_v1

config

object

No

The offline configuration information.

object

No

The offline configuration.

desc

string

No

The description.

test

files

array

No

The list of files to modify.

array<object>

No

operateType

string

No

The operation type. Valid values: UPDATE and DELETE. Default value: UPDATE.

UPDATE

parentFullPath

string

No

The path of the parent folder.

/

fileName

string

No

The file name.

/intervene_dict/analyzer.dict

config

object

No

The configuration for the update.

content

string

No

The content of the file. This is the dictionary configuration.

$dictContent

variables

object

No

The variables.

object

No

The variable information.

description

string

No

The description.

test

disableModify

boolean

No

Specifies whether the variable can be modified by users.

true

isModify

boolean

No

Specifies whether the variable has been modified.

false

type

string

No

The type of the variable. Valid values: NORMAL for a regular variable and FUNCTION for a function variable.

NORMAL

value

string

No

The value of the variable.

test

dirName

string

No

The folder name.

/test

pushMode

string

No

The configuration push mode. By default, only the configuration is pushed.

PUSH_ONLY

extend

object

No

The extended field configurations. The key specifies the field type, and the value is an array of field names from the schema. Valid keys: `vector` for vector fields, `embeding` for fields that require embedding, and `description` for description fields.

{ "vector": [ "source_image_vector" ], "embeding": [ "source_image" ], "description": [] }

Response elements

Element

Type

Description

Example

object

requestId

string

The request ID.

93A9E542-8CF8-5BA6-99AB-94C0FE520429

result

any

The returned result.

{}

Examples

Success response

JSON format

{
  "requestId": "93A9E542-8CF8-5BA6-99AB-94C0FE520429",
  "result": "{}"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.