All Products
Search
Document Center

OpenSearch:Perform offline changes

Last Updated:Feb 23, 2023

To modify the schema of an application, such as creating or deleting fields, modifying or creating indexes, creating or deleting attributes, and creating or deleting default display fields, or change the data source of the application, you can perform offline changes on the application details page.

Procedure

1. Log on to the OpenSearch console. In the upper-left corner of the page, move the pointer over the place where the OpenSearch edition is displayed and select OpenSearch High-performance Search Edition. By default, the Instance Management page is displayed. On the Instance Management page, find the application for which you want to modify the schema or change the data source, and then click Details in the Actions column.

image

2. On the Online Application tab of the Application Details page, click Modify Offline Application.

image

3. On the Modify Application page, modify the schema of the application as required.

    • Edit fields.

image

    • Edit index, attribute, or default display fields.

image
    • Edit the data source and modify the mapping.

image

4. Modify the sorting of search results.

image

5. After the configurations are modified, specify whether to synchronize incremental data to the offline version that is created and whether to automatically publish the offline version.

image
  • If you select No. I will synchronize the data to the offline application from the data source or push full data to the offline application by using the API, and incremental data is pushed to the online version of the application by calling API operations, the data is not synchronized to the offline version when the offline version is being created.

  • If you select No. I will manually publish the offline application on the application details page, you need to click Publish on the Offline Application tab of the Application Details page to manually publish the offline version.

image

Usage notes

  1. If you have only the online version of an application, when you click Modify Offline Application on the Online Application tab of the Application Details page, the Modify Application page appears. After an offline version is created, the online version and the offline version coexist.

  2. If you have both the online version and offline version of an application, after you click Modify Offline Application on the Online Application tab of the Application Details page, the Modify Offline Application page appears. On the Modify Offline Application page, you can view the details of the offline version. To go to the Modify Application page, click Configure. After you confirm the modifications, the previous offline version is deleted, and a new offline version is created.

  3. If you have both the online version and offline version of an application, when you perform offline changes on the application, the changes are made to the offline version. If you want to perform changes on the online version, you must delete the offline version.

  4. If the online version of an application is in the Invalid state, you must delete the application and reconfigure the application.