Skip to content

SHOW INDEXES

SHOW INDEXES shows the defined tag or edge type indexes names in the current graph space.

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 Nebula Graph 2.0.1, the SHOW TAG/EDGE INDEXES statement only returns Names.


Last update: August 18, 2021
Back to top