I'm trying to create a composite index on the title property in JanusGraph using the Gremlin console.
Here's what I've done so far:
- Created the
title
property key. - Built a unique composite index on this key named
byTitleUnique
. - Waited for the index to show in the INSTALLED state using
mgmt.getGraphIndex('byTitleUnique')
- Attempted to update the index status to REGISTERED using the following commands:
mgmt = graph.openManagement()
mgmt.updateIndex(mgmt.getGraphIndex('byTitleUnique'), SchemaAction.REGISTER_INDEX).get()
mgmt.commit()
After running the command and waiting a long time (even over an hour), the index status still remains in the INSTALLED
state.
As per my understanding, after this step, I should be able to Reindex and then Enable the index. But since the index isn’t moving past the INSTALLED
state, I'm stuck.
Questions:
Why isn't the index transitioning from
INSTALLED
toREGISTERED
after running the command?Is there anything else I need to do to make this transition happen?
Could this be related to the backend (I'm using Cassandra and Elasticsearch)?
Any help or insights would be appreciated.