Skip to content

Instantly share code, notes, and snippets.

@espeed
Created December 6, 2011 23:52
Show Gist options
  • Save espeed/1440683 to your computer and use it in GitHub Desktop.
Save espeed/1440683 to your computer and use it in GitHub Desktop.
Create Automatic Vertex Index
import groovy.json.JsonSlurper
def slurper = new JsonSlurper()
keys = null
if (keys != null)
keys = slurper.parseText(keys)
public abstract class People implements Vertex {}
index = g.createAutomaticIndex('people',People.class,keys)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment