Updated on 2025-01-02 GMT+08:00

Managing Indexes

The index management function is added to the graph access page to facilitate index addition, deletion, and search.

Creating an Index

  1. Log in to the graph editor. For details, see Accessing the Graph Editor.
  2. On the Indexes tab of the graph editor, click Create.
    Figure 1 Creating an index
  3. In the Create dialog box that appears, set the following parameters:
    • Name: Enter a custom index name.
    • Type:
      • Memory edition: The options are Global vertex index and Global edge index.
      • Database edition: The options are Global vertex index, Global edge index, Local vertex index, and Local edge index.
    • Label: You can enable or disable this toggle.
    • Label Name: This parameter is available only when Type is Local vertex index or Local edge index.
    • Attribute: Only when there is a single attribute, its name will be displayed here. If there are multiple attributes, their names are not displayed.
      Figure 2 Parameters for creating an index

    For a database edition graph, you can create any number of indexes. For a memory edition graph, you can create up to 10 indexes.

  4. Click OK. A dialog box appears, where you can choose whether to go to the task center to monitor the index creation progress.
    Figure 3 Monitoring the creation progress
  5. Once the creation is successful, the new index is displayed on the Indexes tab.

Deleting an Index

  1. On the Indexes tab of the graph editor, locate the index you want to delete and slide the scroll bar from left to right.
  2. Click Delete in the Operation column.
    Figure 4 Deleting an index
  3. In the Delete Index dialog box that appears, confirm the index information, manually enter DELETE or click Auto Enter, and click OK.
    Figure 5 Deleting an index