Skip to content

Instantly share code, notes, and snippets.

@espeed
Created August 25, 2011 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save espeed/1170115 to your computer and use it in GitHub Desktop.
Save espeed/1170115 to your computer and use it in GitHub Desktop.
Rebuild a graph's vertices index form Gremlin
// 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