Created
August 25, 2011 06:41
-
-
Save espeed/1170115 to your computer and use it in GitHub Desktop.
Rebuild a graph's vertices index form Gremlin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rebuild a graph's vertices index from Gremlin | |
gremlin> g = TinkerGraphFactory.createTinkerGraph() | |
gremlin> index = g.getIndex('vertices',Vertex) | |
gremlin> AutomaticIndexHelper.reIndexElements(g, index, g.getVertices()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment