I'm trying to find out how can I do a LIKE query in gremlin using the getVertices or similar method, which would hit the indexes. I'm using OrientDB 2.1.11 and Gremlin.
This works, but does an exact match:
g.getVertices('city_state.city','VANCOUVER')
What I need to do is something like below (doesn't work though):
g.getVertices('city_state.city','VANC%')
Would be awesome if I can use the LUCENE index, if its supported.
You could try this query:
or this (similar to yours):