Global indexes can be limited to the "constraint" by indexOnly() step, from JanusGraph documentation:
mgmt.buildIndex('byNameAndLabel', Vertex.class).addKey(name).indexOnly(god).buildCompositeIndex()
It is handled by the "createCompositeIndex(...) java code by:
addSchemaEdge(indexVertex, (JanusGraphSchemaVertex) constraint, TypeDefinitionCategory.INDEX_SCHEMA_CONSTRAINT, null);
I should learn how the index was created from JanusGraphIndex instance, but the method is not there,... I need to have it automatically detected by the software somehow.
Is any other way to know it was Indexed Only By the "god"?