【发布时间】:2017-08-29 10:36:27
【问题描述】:
我在用户和 uuid 上创建了一个索引
如果我这样做:
schema.vertexLabel("User").describe()
我明白了:
schema.vertexLabel("User").index("byUuid").materialized().by("uuid").add()
当我跑步时:
g.V().hasLabel("User").has("uuid","oneUuid")
索引被正确拾取..
但是当我执行以下操作时:
g.V().or(__.hasLabel("User").has("uuid","oneUuid"), __.hasLabel("User").has("uuid","anotherUUID"))
我得到:
org.apache.tinkerpop.gremlin.driver.exception.ResponseException: 可以 找不到索引来回答查询子句和 graph.allow_scan 是 禁用:
谢谢!
【问题讨论】:
标签: datastax datastax-enterprise gremlin datastax-enterprise-graph