简体   繁体   English

OrientDB Java API dropIndex

[英]OrientDB Java API dropIndex

I've created property and index using the java api: 我已经使用Java api创建了属性和索引:

OrientVertexProperty orientVertexProperty = orientClass.createProperty(currentPropDef.getName(), currentPropertyType);

orientVertexProperty.createIndex(INDEX_TYPE.NOTUNIQUE);

But there is no drop or remove index method. 但是没有删除或删除索引的方法。
How can I drop the index using the JAVA API? 如何使用JAVA API删除索引?

Try this: 尝试这个:

g.dropIndex("<class name>.<indexend property>");

Hope it helps. 希望能帮助到你。

Regards. 问候。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM