Unable to add mixed index in Titan Unable to add mixed index in Titan elasticsearch elasticsearch

Unable to add mixed index in Titan


According to the result, it seems that the "deviceIndex" is registered but not enabled yet. You can try to see that the following code can solve your issue or not?

graph.tx().rollback()mgmt.buildIndex('deviceIndex',Vertex.class).addKey(serialNumber,Mapping.STRING.asParameter()).addKey(manufacturer,Mapping.STRING.asParameter()).addKey(clas,Mapping.STRING.asParameter()).addKey(description,Mapping.TEXT.asParameter()).addKey(fw_version,Mapping.STRING.asParameter()).addKey(hw_version,Mapping.STRING.asParameter()).addKey(latitude).addKey(longitude).addKey(accuracy).addKey(measure_datetime).buildMixedIndex("search")mgmt.commit()graph.tx().commit()ManagementSystem.awaitGraphIndexStatus(graph, 'deviceIndex').status(SchemaStatus.ENABLED).call()

Sometimes, specially in a remote data-stores (over high latency network) it takes time for index to become enabled instantly, waiting for index to become enabled may help your case.