diff --git a/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/8.show-indexes.md b/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/8.show-indexes.md index a6d5ea9e1d..dd9ce30a06 100644 --- a/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/8.show-indexes.md +++ b/docs-2.0/3.ngql-guide/7.general-query-statements/6.show/8.show-indexes.md @@ -1,6 +1,6 @@ # SHOW INDEXES -`SHOW INDEXES`语句显示现有的原生索引。 +`SHOW INDEXES`语句可以列出当前图空间内的所有Tag和Edge type(包括属性)的索引。 ## 语法 @@ -12,18 +12,27 @@ SHOW {TAG | EDGE} INDEXES; ```ngql nebula> SHOW TAG INDEXES; -+------------------+ -| Names | -+------------------+ -| "play_age_0" | -+------------------+ -| "player_index_0" | -+------------------+ ++------------------+--------------+-----------------+ +| 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; -+----------------+ -| Names | -+----------------+ -| "index_follow" | -+----------------+ ++----------------+----------+---------+ +| Index Name | By Edge | Columns | ++----------------+----------+---------+ +| "follow_index" | "follow" | [] | ++----------------+----------+---------+ ``` + + +!!! Compatibility "历史版本兼容性" + + Nebula Graph 2.0.1中, `SHOW TAG/EDGE INDEXES` 语句仅返回 `Names`。