我想知道如何在gremlin中使用getVertices或类似的方法来执行LIKE查询,这会碰到索引。我使用OrientDB 2.1.11和Gremlin。OrientDB Gremlin - g.getVertices在属性上执行全文搜索/匹配
这工作,但不会完全匹配:
g.getVertices('city_state.city','VANCOUVER')
我需要做的是类似以下(不工作,虽然):如果我能
g.getVertices('city_state.city','VANC%')
将是真棒如果支持,使用LUCENE索引。
是正确的:-----> g.getVerticesOfClass( 'city_state') (''city')。matches('VAN。*')} –