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:
title
property key.byTitleUnique
.
mgmt.getGraphIndex('byTitleUnique')
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.
Why isn't the index transitioning from INSTALLED
to REGISTERED
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.
We found a workaround for updating the index status. We added the following storage configuration specifically for re-indexing purposes in the JanusGraph property:
storage.cql.use-external-locking=true
https://docs.janusgraph.org/v0.4/basics/configuration-reference/. Once the re-indexing is complete, please remember to turn it off.