Skip to content

Instantly share code, notes, and snippets.

@homerquan
Forked from dkuppitz/GraphOfGods.groovy
Created July 10, 2013 03:24
Show Gist options
  • Save homerquan/5963251 to your computer and use it in GitHub Desktop.
Save homerquan/5963251 to your computer and use it in GitHub Desktop.
config = new BaseConfiguration()
storage = config.subset("storage")
storage.setProperty("backend", "inmemory")
index = storage.subset("index").subset("search")
index.setProperty("backend", "elasticsearch")
index.setProperty("local-mode", true)
index.setProperty("client-only", false)
index.setProperty("directory", "/tmp/titan/es")
g = TitanFactory.open(config)
GraphOfTheGodsFactory.load(g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment