Fastest way to check if a property key is mixed indexed or not

Harshit Sharma

Is there a way I can check if a particular property is indexed or not?

I know the following method but there I will have to traverse all indexes

List<JanusgraphIndex> indexList = mgmt.getIndexes(Vertex.class)
For(index : indexList){
  propertyKeys = index.getFieldKeys()
  if (propertyKeys.contains("KEY1")
      return true;
return false;

is there a better way to do the same?

Harshit Sharma

Join { to automatically receive all group messages.