Closed H-Plus-Time closed 8 years ago
Thanks @H-Plus-Time! I haven't started updating the indexing/data modelling functionality yet, but I will start soon and this helps. Before I merge, would you mind updating the test [1]? I know we aren't running it in the travis yet, but it would be nice to start building them up.
The stated purpose of get_existing_indices seems a bit divergent from its test - for the moment I'm assuming that both are concerned with vertex/edge types (rather than indexed property keys); it might be prudent to rename this to get_existing_labels.
Also, the test doesn't pass if there are any extant labels; from looking at the docs, there doesn't appear to be any way of removing an element label, so it might be helpful to note in a testing section of the readme something along the lines of 'make sure to exec titan.sh clean before and after testing, and modify the gremlin-server.yaml to point to a dummy database'.
I agree, it would be prudent to rename this test. There are many things like this throughout the codebase. Thanks for doing this.
index management moved to com.thinkaurelius.titan.graphdb.database.management.ManagementSystem. Any index management, setting of cardinality constraints, property key defs,etc need to go through the aforementioned class.