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

amend the doc of fulltext-index #751

Merged
merged 5 commits into from
Jul 23, 2021
Merged
Changes from 1 commit
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
Expand Up @@ -14,7 +14,7 @@

## 自然语言全文搜索

自然语言搜索将搜索的字符串解释为自然人类语言中的短语。搜索不区分大小写。
自然语言搜索将搜索的字符串解释为自然人类语言中的短语。搜索不区分大小写,且默认是对字符串的每一以空格分隔为单位的子字符串单独判断搜索

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该用中文字符吧


## 语法

Expand Down Expand Up @@ -65,9 +65,15 @@ nebula> CREATE TAG player(name string, age int);
//创建原生索引。
nebula> CREATE TAG INDEX name ON player(name(20));

//重建原生索引。
nebula> REBUILD TAG INDEX;

//创建全文索引,索引名称需要以nebula开头。
nebula> CREATE FULLTEXT TAG INDEX nebula_index_1 ON player(name);

//重建全文索引。
nebula> REBUILD FULLTEXT INDEX;

//查看全文索引。
nebula> SHOW FULLTEXT INDEXES;
+------------------+-------------+-------------+--------+
Expand Down Expand Up @@ -148,4 +154,4 @@ nebula> LOOKUP ON player WHERE FUZZY(player.name, "Tim Dunncan", AUTO, OR) YIELD

//删除全文索引。
nebula> DROP FULLTEXT INDEX nebula_index_1;
```
```