是否可以在Titan中标记标签?

时间:2016-03-29 21:08:16

标签: titan

当我运行这样的查询时:

g.V().hasLabel("myDefinedLabel").values("myKey").next()

打印

20:46:30 WARN  com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx  - 
Query requires iterating over all vertices [(~label = myDefinedLabel)].
For better performance, use indexes

所以,我想解决这个问题,我需要索引标签。反正有吗?

我尝试执行正常的过程来创建描述here in Titan docs的索引,但标签不是索引的常规属性键。

假设我想为标签创建复合索引,该怎么做?

1 个答案:

答案 0 :(得分:4)

Titan doesn't allow you to index labelsaccording to the devs这不是他们对启用感兴趣的内容。