JanusGraph graph_joy = JanusGraphFactory
.open("/home/white/IdeaProjects/squery-gremlin/conf/janusgraph.properties");
JanusGraphManagement mgmt = graph_joy.openManagement();
mgmt.buildIndex("indexID_05", Vertex.class)
.indexOnly(mgmt.getVertexLabel("user"))
.addKey(mgmt.getPropertyKey("userid")).buildCompositeIndex();
mgmt.commit();
//timeouts see bellow the logs
ManagementSystem.awaitGraphIndexStatus(graph_joy,"indexID_05").call();
JanusGraph graph_joy = JanusGraphFactory
.open("/home/white/IdeaProjects/squery-gremlin/conf/janusgraph.properties");
JanusGraphManagement mgmt = graph_joy.openManagement();
mgmt.buildIndex("indexID_05", Vertex.class)
.indexOnly(mgmt.getVertexLabel("user"))
.addKey(mgmt.getPropertyKey("userid")).buildCompositeIndex();
mgmt.commit();
//timeouts see bellow the logs
ManagementSystem.awaitGraphIndexStatus(graph_joy,"indexID_05").call();