diff --git a/docs/manual-EN/0.about-this-manual.md b/docs/manual-EN/0.about-this-manual.md index a6f39e9f469..4284dde4a6d 100644 --- a/docs/manual-EN/0.about-this-manual.md +++ b/docs/manual-EN/0.about-this-manual.md @@ -1,6 +1,6 @@ # About This Manual -This is the **Nebula Graph** User Manual. It documents **Nebula Graph** 1.0. 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. For information about which versions have been released, see [Release Notes](https://github.com/vesoft-inc/nebula/releases). ## Who Shall Read This Manual diff --git a/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/lookup-syntax.md b/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/lookup-syntax.md index 923f2385a91..9f5b9b128a6 100644 --- a/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/lookup-syntax.md +++ b/docs/manual-EN/2.query-language/4.statement-syntax/2.data-query-and-manipulation-statements/lookup-syntax.md @@ -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 +``` diff --git a/docs/manual-EN/CHANGELOG.md b/docs/manual-EN/CHANGELOG.md index 933a68c7ec7..8d2e5b7dc31 100644 --- a/docs/manual-EN/CHANGELOG.md +++ b/docs/manual-EN/CHANGELOG.md @@ -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