【发布时间】:2016-02-26 07:21:46
【问题描述】:
我正在尝试找出如何使用 getVertices 或类似方法在 gremlin 中执行 LIKE 查询,这会命中索引。我正在使用 OrientDB 2.1.11 和 Gremlin。
这可行,但完全匹配:g.getVertices('city_state.city','VANCOUVER')
我需要做的是下面的事情(虽然不起作用):g.getVertices('city_state.city','VANC%')
如果我可以使用 LUCENE 索引(如果它受支持),那就太棒了。
【问题讨论】:
-
是否正确:-----> g.getVerticesOfClass('city_state')._().filter{it.getProperty('city').matches('VAN.*') }
标签: full-text-search orientdb gremlin orientdb-2.1