From 892ea870dd813dc8b1309823bc07d4fbf88b1fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=99=93=E9=9D=92?= <86282370+izhuxiaoqing@users.noreply.github.com> Date: Mon, 13 Sep 2021 15:44:28 +0800 Subject: [PATCH 1/3] ldap and improve query by tag index --- .../1.authentication/4.ldap.md | 80 +++++++++---------- .../improve-query-by-tag-index.md | 27 ++++--- 2 files changed, 53 insertions(+), 54 deletions(-) diff --git a/docs-2.0/7.data-security/1.authentication/4.ldap.md b/docs-2.0/7.data-security/1.authentication/4.ldap.md index 05dcd06cf9d..26e0c05d2a6 100644 --- a/docs-2.0/7.data-security/1.authentication/4.ldap.md +++ b/docs-2.0/7.data-security/1.authentication/4.ldap.md @@ -1,39 +1,38 @@ - \ No newline at end of file + After using OpenLDAP for authentication, local users (including `root`) cannot log in normally. diff --git a/docs-2.0/8.service-tuning/improve-query-by-tag-index.md b/docs-2.0/8.service-tuning/improve-query-by-tag-index.md index 2fdfab05049..ae871950f8d 100644 --- a/docs-2.0/8.service-tuning/improve-query-by-tag-index.md +++ b/docs-2.0/8.service-tuning/improve-query-by-tag-index.md @@ -1,26 +1,27 @@ - -# 增加和删除标签 +# Add and delete tags -在openCypher中,有增加标签(`SET label`)和移除标签(`REMOVE label`)的功能,可以用于加速查询或者标记过程。 +openCypher has the features of `SET label` and `REMOVE label` to speed up the process of querying or labeling. -在Nebula Graph中,可以通过Tag变相实现相同操作,创建Tag并将Tag插入到已有的点上,就可以根据Tag名称快速查找点,也可以通过`DELETE TAG`删除某些点上不再需要的Tag。 +Nebula Graph achieves the same operations by creating and inserting tags to an existing vertex, which can quickly query vertices based on the tag name. Users can also run `DELETE TAG` to delete some vertices that are no longer needed. !!! caution - 请确保点上已经有另一个Tag,否则删除点上最后一个Tag时,会导致点也被删除。 + Make sure that there is another tag on the vertex. Otherwise, the vertex will be deleted when the last tag is deleted. -## 示例 +## Examples -例如在basketballplayer数据集中,部分篮球运动员同时也是球队股东,可以为股东Tag`shareholder`创建索引,方便快速查找。如果不再是股东,可以通过`DELETE TAG`语句删除相应运动员的股东Tag。 +For example, in the `basketballplayer` data set, some basketball players are also team shareholders. Users can create an index for the shareholder tag `shareholder` for quick search. If the player is no longer a shareholder, users can delete the shareholder tag of the corresponding player by `DELETE TAG`. ```ngql -//创建股东Tag和索引 +//This example creates the shareholder tag and index. nebula> CREATE TAG shareholder(); nebula> CREATE TAG INDEX shareholder_tag on shareholder(); -//为点添加Tag + +//This example adds a tag on the vertex. nebula> INSERT VERTEX shareholder() VALUES "player100":(); nebula> INSERT VERTEX shareholder() VALUES "player101":(); -//快速查询所有股东 + +//This example queries all the shareholders. nebula> MATCH (v:shareholder) RETURN v; +---------------------------------------------------------------------+ | v | @@ -37,7 +38,8 @@ nebula> LOOKUP ON shareholder; +-------------+ | "player101" | +-------------+ -//如果player100不再是股东 + +//In this example, the "player100" is no longer a shareholder. nebula> DELETE TAG shareholder FROM "player100"; nebula> LOOKUP ON shareholder; +-------------+ @@ -49,5 +51,4 @@ nebula> LOOKUP ON shareholder; !!! note - 如果插入测试数据后才创建索引,请用`REBUILD TAG INDEX ;`语句重建索引。 ---> \ No newline at end of file + If the index is created after inserting the test data, use the `REBUILD TAG INDEX ;` statement to rebuild the index. From 967c53b6f07732c89d7f0970bb68d66cc2129b3e Mon Sep 17 00:00:00 2001 From: "max.zhu@vesoft.com" <86282370+izhuxiaoqing@users.noreply.github.com> Date: Tue, 14 Sep 2021 14:29:34 +0800 Subject: [PATCH 2/3] Update improve-query-by-tag-index.md --- docs-2.0/8.service-tuning/improve-query-by-tag-index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/8.service-tuning/improve-query-by-tag-index.md b/docs-2.0/8.service-tuning/improve-query-by-tag-index.md index ae871950f8d..e63ca267e59 100644 --- a/docs-2.0/8.service-tuning/improve-query-by-tag-index.md +++ b/docs-2.0/8.service-tuning/improve-query-by-tag-index.md @@ -1,6 +1,6 @@ # Add and delete tags -openCypher has the features of `SET label` and `REMOVE label` to speed up the process of querying or labeling. +OpenCypher has the features of `SET label` and `REMOVE label` to speed up the process of querying or labeling. Nebula Graph achieves the same operations by creating and inserting tags to an existing vertex, which can quickly query vertices based on the tag name. Users can also run `DELETE TAG` to delete some vertices that are no longer needed. From 02ac4eeffac022118c5627ffa7229feaf4a1c10c Mon Sep 17 00:00:00 2001 From: "max.zhu@vesoft.com" <86282370+izhuxiaoqing@users.noreply.github.com> Date: Tue, 14 Sep 2021 14:32:04 +0800 Subject: [PATCH 3/3] Update 4.ldap.md --- docs-2.0/7.data-security/1.authentication/4.ldap.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs-2.0/7.data-security/1.authentication/4.ldap.md b/docs-2.0/7.data-security/1.authentication/4.ldap.md index 26e0c05d2a6..bdf721d3007 100644 --- a/docs-2.0/7.data-security/1.authentication/4.ldap.md +++ b/docs-2.0/7.data-security/1.authentication/4.ldap.md @@ -4,11 +4,11 @@ This topic introduces how to connect Nebula Graph to the OpenLDAP server and use !!! enterpriseonly - This feature is supported by the enterprise edition only. + This feature is supported by the Enterprise Edition only. ## Authentication method -After the OpenLDAP authentication is enabled and users log in to Nebula Graph with the account and password, Nebula Graph checks whether the login account exists in the Meta service. If the account exists, Nebula Graph finds the corresponding DN in OpenLDAP according to the authentication method and verifies the password. +After the OpenLDAP authentication is enabled and users log into Nebula Graph with the account and password, Nebula Graph checks whether the login account exists in the Meta service. If the account exists, Nebula Graph finds the corresponding DN in OpenLDAP according to the authentication method and verifies the password. OpenLDAP supports two authentication methods: simple bind authentication (SimpleBindAuth) and search bind authentication (SearchBindAuth). @@ -26,7 +26,7 @@ Search bind authentication reads the Graph service configuration information and - The account and password are imported on OpenLDAP. -- The server where OpenLDAP is located opens the corresponding authentication port. +- The server where OpenLDAP is located has opened the corresponding authentication port. ## Procedures