Skip to content

SHOW INDEXES

The SHOW INDEXES statement shows the names of existing native indexes.

Syntax

SHOW {TAG | EDGE} INDEXES;

Examples

nebula> SHOW TAG INDEXES;
+------------------+--------------+-----------------+
| Index Name       | By Tag       | Columns         |
+------------------+--------------+-----------------+
| "fix"            | "fix_string" | ["p1"]          |
| "player_index_0" | "player"     | ["name"]        |
| "player_index_1" | "player"     | ["name", "age"] |
| "var"            | "var_string" | ["p1"]          |
+------------------+--------------+-----------------+

nebula> SHOW EDGE INDEXES;
+----------------+----------+---------+
| Index Name     | By Edge  | Columns |
+----------------+----------+---------+
| "follow_index" | "follow" | []      |
+----------------+----------+---------+

Legacy version compatibility

In NebulaGraph 2.x, SHOW TAG/EDGE INDEXES only returns Names.


Last update: March 13, 2023