Modifies an index.
Operation description
Method
PUT
URI
/openapi/ha3/instances/{instanceId}/indexes/{indexName}
```.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:ModifyIndex |
update |
*Instance
|
None | None |
Request syntax
PUT /openapi/ha3/instances/{instanceId}/indexes/{indexName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
| indexName |
string |
Yes |
The index name. |
test_api |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| dryRun |
boolean |
No |
Specifies whether to only validate the input parameters without performing the actual operation. Default value: false. Valid values:
|
true |
| body |
object |
No |
The request body parameters. |
|
| dataSourceInfo |
object |
No |
The data source information. This parameter is required for the new version of AISearch. |
|
| buildMode |
string |
No |
The index rebuild mode. Valid values: api (push data source through API) and indexRecover (recover data source from the index). |
api |
| generation |
integer |
No |
The generation of the dump table when recovering the data source from the index. |
1718698593 |
| dataTimeSec |
integer |
No |
The timestamp for incremental data tracking. |
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 data source type. Valid values: odps, swift, saro, oss, and unKnow. |
odps |
| domain |
string |
No |
The offline deployment. |
vpc_hz_domain_1 |
| config |
object |
No |
The ODPS datasource config. |
|
| 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 |
| 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 saro datasource config. |
|
| 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 enable automatic full indexing. |
true |
| processParallelNum |
integer |
No |
The number of concurrent full-indexing processes. |
2 |
| partition |
string |
No |
The ODPS data source partition. This parameter is required when the data source type is ODPS. |
ds=20230114 |
| ossDataPath |
string |
No |
The file path selected for index rebuilding from an OSS data source. |
/opensearch/oss.json |
| description |
string |
No |
The description. |
"test" |
| content |
string |
No |
The file content. |
{\"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 data partition. |
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-indexing build threads. |
2 |
| mergeParallelNum |
integer |
No |
The number of concurrent full-indexing merge threads. |
2 |
| cluster |
object |
No |
The cluster information. |
|
|
object |
No |
Cluster information |
||
|
object |
No |
Content updates for cluster.json |
||
| value |
string |
No |
Variable |
partition |
| description |
string |
No |
Description |
Custom Variable |
| disableModify |
boolean |
No |
Whether the user can modify this |
true |
| isModify |
boolean |
No |
Whether this has been modified |
false |
| type |
string |
No |
Normal variable: NORMAL, function variable: FUNCTION |
NORMAL |
| clusterConfigName |
string |
No |
The cluster.json file name. |
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 |
Offline configuration |
||
| desc |
string |
No |
Remarks |
test |
| files |
array<object> |
No |
List of modified files |
|
|
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 push configuration mode. Default value: push configuration only. |
PUSH_ONLY |
| extend |
object |
No |
The extended content for field configurations. key: vector (vector field), embeding (field requiring embedding), or description (remarks field). value: ["schema field name"]. |
{ "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.