title: Gremlin Python createIndex (Tinkerpop)
body: <p>I'm currently using Tinkerpop with the <a href="https://pypi.python.org/pypi/gremlinpython/3.2.4" rel="nofollow noreferrer">gremlin python client</a> with the default <a href="https://tinkerpop.apache.org/docs/current/reference/#tinkergraph-gremlin" rel="nofollow noreferrer">TinkerGraph-Gremlin</a>(which is running in-memory). I wanted to boost the performance of my queries and read about the <code>createIndex()</code> function which sounds like the perfect it for my use case, sadly I wasn't able to create an index with the python client. I also tried to add these lines into the start-up groovy script (run through the groovy scirpt without errors) but when I run my performance benchmarks I get the same results.</p>
  
  <p>So my question is: Can I create an index with the python client and if not what would be a workaround? Also is there a way to ask gremlin if there are any indices defined?</p>
  
  <p>PS.: For the groovy script I used the default <code>empty-sample.grooy</code> and add these lines before the last call:</p>
  
  <pre><code>graph.createIndex("name", Vertex.class)
  graph.createIndex("nap", Edge.class)
  </code></pre>
  
  <p>Thanks!</p>