Details
-
Sub-task
-
Status: Done
-
Major
-
Resolution: Done
-
0.2.0
-
None
-
None
Description
For global index described on S2GRAPH-151, it is necessary to change Index Management API on Graph Client.
For reference following is APIs for create ServiceColumn/Label with Index through Management API.
Management.createServiceColumn( serviceName = serviceName, columnName = "person", columnType = "integer", props = Seq( Prop("name", "-", "string"), Prop("age", "0", "integer"), Prop("location", "-", "string") ) )
management.createLabel( label = "bought", srcServiceName = serviceName, srcColumnName = "person", srcColumnType = "integer", tgtServiceName = serviceName, tgtColumnName = "product", tgtColumnType = "integer", idDirected = true, serviceName = serviceName, indices = Seq( Index("PK", Seq("amount", "created_at") ), props = Seq( Prop("amount", "0.0", "double"), Prop("created_at", "2000-01-01", "string") ), consistencyLevel = "strong" )
I suggest to add following new method to build global index.
management.buildGlobalVertexIndex("search", Seq("name", "age")) management.buildGlobalEdgeIndex("search", Seq("x", "y"))
Attachments
Issue Links
- links to