Skip to content
Permalink
Browse files
Add some supplements about search index
Change-Id: Ic38d4c6fa4805b6d5a9c05b5c7d715292627dca9
  • Loading branch information
Linary authored and zhoney committed Dec 26, 2018
1 parent 6c08ad3 commit c9c3b8f80a0d258fd5efd0cc34f4ee8e09891c1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
@@ -348,18 +348,20 @@ interface | param | description
-------------------- | ----- | ---------------------------------------------------------
by(String... fields) | files | allow to build index for multi fields for secondary index

- indexType: 建立的索引类型,目前支持两种,即 Secondary 和 Range。Secondary 允许建立联合索引,支持索引前缀搜索,Range 支持数值类型的范围查询;
- indexType: 建立的索引类型,目前支持三种,即 Secondary、RangeSearch。Secondary 允许建立联合索引,支持索引前缀搜索,Range 支持数值类型的范围查询,Search 支持全文检索

interface | indexType | description
----------- | --------- | ---------------------------------------
secondary() | Secondary | support prefix search
range() | Range | supports range search for numeric types
range() | Range | support range search for numeric types and date type
search() | Search | support full text search

##### 2.5.2 创建 IndexLabel

```java
schema.indexLabel("personByAge").onV("person").by("age").range().ifNotExist().create();
schema.indexLabel("createdByDate").onE("created").by("date").secondary().ifNotExist().create();
schema.indexLabel("personByLived").onE("person").by("lived").search().ifNotExist().create();
```

##### 2.5.3 删除 IndexLabel
@@ -62,6 +62,10 @@ POST http://localhost:8080/graphs/hugegraph/graph/edges

#### 2.2.2 创建多条边

##### Params

- check_vertex: 是否检查顶点存在(true | false),当设置为 true 而待插入边的源顶点或目标顶点不存在时会报错。

##### Method & Url

```

0 comments on commit c9c3b8f

Please sign in to comment.