Skip to content

Commit

Permalink
Update 1.search-with-text-based-index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy authored Sep 21, 2023
1 parent fb9f807 commit 0e80f6a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ LOOKUP ON {<tag> | <edge_type>} WHERE ES_QUERY(<index_name>, "<text>") YIELD <re

- `index_name`:索引名称。

- `text`:搜索条件。支持的语法请参见[Query string syntax](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax)
- `text`:搜索条件。WHERE 后只能跟一个 ES_QUERY,所有判断条件必须写在 text 里。详细语法请参见[Query string syntax](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax)

- `score()`:对符合条件的点做 N 度扩展计算出的分数。默认值为`1.0`。分数越高,匹配程度越高。返回值默认按照分数从高到低排序。详情参见[Search and Scoring in Lucene](https://lucene.apache.org/core/9_6_0/core/org/apache/lucene/search/package-summary.html#package.description)

Expand Down Expand Up @@ -417,4 +417,4 @@ nebula> LOOKUP ON player WHERE FUZZY(player.name, "Tim Dunncan", AUTO, OR) YIELD
//删除全文索引。
nebula> DROP FULLTEXT INDEX nebula_index_1;
```
{{comm.comm_end}}
{{comm.comm_end}}

0 comments on commit 0e80f6a

Please sign in to comment.