Skip to content

Instantly share code, notes, and snippets.

@NhuanTDBK
Created August 1, 2018 04:55
Show Gist options
  • Save NhuanTDBK/ac0e708cb8b029ed652bcad3a206e2bb to your computer and use it in GitHub Desktop.
Save NhuanTDBK/ac0e708cb8b029ed652bcad3a206e2bb to your computer and use it in GitHub Desktop.
janus_reindex
graph = JanusGraphFactory.open("conf/gremlin-server/janusgraph-cql-es.properties")
mgmt = graph.openManagement()
mgmt.updateIndex(mgmt.getGraphIndex("ByShopIDAndRefID"), SchemaAction.REINDEX).get()
mgmt.updateIndex(mgmt.getGraphIndex("ByShopID"), SchemaAction.REINDEX).get()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment