Skip to content

Commit

Permalink
version num & index faq (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amber1990Zhang committed Sep 24, 2020
1 parent 52b51d1 commit f3b4a86
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/manual-EN/0.about-this-manual.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# About This Manual

This is the **Nebula Graph** User Manual. It documents **Nebula Graph** 1.0.<!-- TODO: update on release --> For information about which versions have been released, see [Release Notes](https://github.com/vesoft-inc/nebula/releases).
This is the **Nebula Graph** User Manual. It documents **Nebula Graph** 1.1.<!-- TODO: update on release --> For information about which versions have been released, see [Release Notes](https://github.com/vesoft-inc/nebula/releases).

## Who Shall Read This Manual

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,36 @@ GO FROM $-.DstVID OVER serve YIELD $-.DstVID, serve.start_year, serve.end_year,
| 105 | 2018 | 2019 | Raptors |
----------------------------------------------------------------
```

## FAQ

### Error code 411

```bash
[ERROR (-8)]: Unknown error(411):
```

Error code `411` shows there is no valid index for the current `WHERE` filter. Nebula Graph uses the left matching mode to select indexes. That is, columns in the `WHERE` filter must be in the first N columns of the index. For example:

```ngql
nebula> CREATE TAG INDEX example_index ON TAG t(p1, p2, p3); -- Create an index for the first 3 properties of tag t
nebula> LOOKUP ON t WHERE p2 == 1 and p3 == 1; -- Not supported
nebula> LOOKUP ON t WHERE p1 == 1; -- Supported
nebula> LOOKUP ON t WHERE p1 == 1 and p2 == 1; -- Supported
nebula> LOOKUP ON t WHERE p1 == 1 and p2 == 1 and p3 == 1; -- Supported
```

### No valid index found

```bash
No valid index found
```

If your query filter contains a string type field, Nebula Graph selects the index that matches all the fields. For example:

```ngql
nebula> CREATE TAG t1 (c1 string, c2 int);
nebula> CREATE TAG INDEX i1 ON t1 (c1, c2);
nebula> LOOKUP ON t1 WHERE t1.c1 == "a"; -- Index i1 is invalid
nebula> LOOKUP ON t1 WHERE t1.c1 == "a" and t1.c2 == 1; -- Index i1 is valid
```
1 change: 1 addition & 0 deletions docs/manual-EN/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Manual Changes

* 0.2.0 - 1.1
* 0.1.9 - 1.0
* 0.1.8 - 1.0 RC4
* 0.1.7 - 1.0 RC3
Expand Down

0 comments on commit f3b4a86

Please sign in to comment.