I am using Titan v0.3.1 and would like to see a list of which keys I have already indexed via createKeyIndex. How can I do this?
In the Gremlin shell, you can use Blueprints' KeyIndexableGraph getIndexedKeys function:
gremlin> g.getIndexedKeys(Vertex.class)
==>my_key_1
==>my_key_2
==>my_key_3
(my_key_1, my_key_2, and my_key_3 are the 3 indexed vertex keys)
To grab the indexes for keys on edges, use Edge.class in place of Vertex.class above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With