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