apache / apache/hugegraph

[Feature] vertex或edge查询时允许部分过滤属性没有建立索引的查询

Open
#1,481 4 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
Java
Stars
3.2k
Forks
636
Avg merge
3d 11h
Merged PRs (30d)
14

Description

## Feature Description:

当前查询Vertex或Edge时,要求查询条件中涉及到的所有属性都建立索引,否则报告异常。以下的查询是否也可以支持正常查询:
查询条件中存在一个或多个索引,但是个别属性没有建立索引

比如:
我有一个label为person的vertex,它有两个属性name和age,其中name建立和索引,但是age没有建立索引

当前一下查询:
```
g.V().hasLabel('person').has('name','liming').has('age',28)
```
会报异常:
```
Don't accept query based on properties [name] that are not indexed in label 'Software', may not match secondary condition
```
我们是否可以支持上述查询?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.