I am using janusgraph 0.2 version and i am connecting from java application, I can create an index please can any one check the following:
JanusGraphManagement mgmt = graph.openManagement();
mgmt.makePropertyKey("Name").dataType(String.class).make();
mgmt.commit();
JanusGraphManagement mgmt = graph.openManagement();
PropertyKey nameProp = mgmt.getPropertyKey("Name")
mgmt.buildIndex("nameIndex", Vertex.class).addKey(nameProp).buildCompositeIndex()
mgmt.commit();
ManagementSystem.awaitGraphIndexStatus(graph, "nameIndex").status(SchemaStatus.REGISTERED).call();
mgmt = graph.openManagement();
JanusGraphIndex index = mgmt.getGraphIndex("nameIndex");
mgmt.updateIndex(index, SchemaAction.REINDEX);
mgmt.commit();
console output is:
Key Name has status INSTALLED
Some key(s) on index nameIndex do not currently have status(es) [REGISTERED]: Name=INSTALLED
This code doesn't create an index from gremlin console when I check that index:
mgmt.awaitGraphIndexStatus(graph, "nameIndex").call()
the result is:
==>GraphIndexStatusReport[success=false, indexName='nameIndex', targetStatus=[REGISTERED], notConverged={Name=ENABLED}, converged={}, elapsed=PT1M0.097S]