You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
报错信息如下:
Exception in thread "main" java.lang.AssertionError: Unknown index type 'UNIQUE'
at com.baidu.hugegraph.exception.ServerException.fromResponse(ServerException.java:44)
at com.baidu.hugegraph.client.RestClient.checkStatus(RestClient.java:100)
at com.baidu.hugegraph.rest.RestClient.post(RestClient.java:156)
at com.baidu.hugegraph.rest.RestClient.post(RestClient.java:133)
at com.baidu.hugegraph.api.gremlin.GremlinAPI.post(GremlinAPI.java:41)
at com.baidu.hugegraph.driver.GremlinManager.execute(GremlinManager.java:51)
at com.baidu.hugegraph.api.gremlin.GremlinRequest$Builder.execute(GremlinRequest.java:55)
at huge.HugeGraph.main(HugeGraph.java:51)
Caused by: [java.lang.AssertionError]
Activity
javeme commentedon Jan 15, 2020
目前unique index不支持查询的,只能限制唯一约束,如果需要查询请再建立一个secondary index索引。
CPJ-data commentedon Jan 15, 2020
@javeme
之前是通过写两个ID,赋值同样的值,一个建立唯一索引,一个建立查询索引进行操作
之前提过该问题,说已经解决,重新进行测试结果如上。
#795 [在ID建唯一索引,web界面用g.V().has("id","1223")查询报错]
zhoney commentedon Mar 4, 2020
@CPJ-data 你使用的server的版本是最新的master吗?这个unique index的问题已经fix,但是并没有cherry-pick到0.10.4的release版本中。如果需要请自行cherry-pick并重新打包server。更多细节可以参考 #795 的回复