2
但是索引状态被安装,如何将状态更改为临时用户,然后禁用它来删除它,请帮助我,如何删除JanusGraph索引?
GraphTraversalSource g = janusGraph.traversal();
JanusGraphManagement janusGraphManagement = janusGraph.openManagement();
JanusGraphIndex phoneIndex =
janusGraphManagement.getGraphIndex("phoneIndex");
PropertyKey phone = janusGraphManagement.getPropertyKey("phone");
SchemaStatus indexStatus = phoneIndex.getIndexStatus(phone);
String name = phoneIndex.name();
System.out.println(name);
if (indexStatus == INSTALLED) {
janusGraphManagement.commit();
janusGraph.tx().commit();
当我在janusGraph上建立索引时,索引状态是安装,它不能启用,所以索引状态被安装它不能删除 – lazyfighter