Re: remove mixed index failed


Baskar Vangili <vanb...@...>
 

yes, Mixed index can only be disabled from gremlin. you have to remove it from indexing system.

mgmt=graph.openManagement()
mgmt.updateIndex(indexname, SchemaAction.DISABLE_INDEX).get()
mgmt.commit()
graph.tx().commit()
mgmt=graph.openManagement();
mgmt.awaitGraphIndexStatus(graph, 'indexname').status(SchemaStatus.DISABLED).call()


On Friday, October 12, 2018 at 12:01:16 AM UTC-7, willam boss wrote:
External mixed indexes must be removed in the indexing system directly.
Type ':help' or ':h' for help.
Display stack trace? [yN]y
java.lang.UnsupportedOperationException: External mixed indexes must be removed in the indexing system directly.
at org.janusgraph.graphdb.database.management.ManagementSystem.updateIndex(ManagementSystem.java:747)
at org.janusgraph.core.schema.JanusGraphManagement$updateIndex$0.call(Unknown Source)


is this mean we can't remove mixed index with gremlin shell ? 


    case REMOVE_INDEX:
                if (index instanceof RelationTypeIndex) {
                    builder = graph.getBackend().buildEdgeScanJob();
                } else {
                    JanusGraphIndex graphIndex = (JanusGraphIndex) index;
                    if (graphIndex.isMixedIndex())
                        throw new UnsupportedOperationException("External mixed indexes must be removed in the indexing system directly.");
                    builder = graph.getBackend().buildGraphIndexScanJob();
                }
                builder.setFinishJob(indexId.getIndexJobFinisher());
                builder.setJobId(indexId);
                builder.setJob(new IndexRemoveJob(graph, indexId.indexName, indexId.relationTypeName));
                try {
                    future = builder.execute();
                } catch (BackendException e) {
                    throw new JanusGraphException(e);
                }
                break;

how can I change my mixed index ?

Join {janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.