Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 8.show-indexes.md #883

Merged
merged 1 commit into from
Aug 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SHOW INDEXES

`SHOW INDEXES`语句显示现有的原生索引
`SHOW INDEXES`语句可以列出当前图空间内的所有Tag和Edge type(包括属性)的索引

## 语法

Expand All @@ -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`。