Im using OrientDB type graph. I need syntax of Gremlin for search same SQL LIKE operator
LIKE 'search%' or LIKE '%search%'
I've check with has and filter (in http://gremlindocs.com/). However it's must determine exact value is passed with type property. I think this is incorrect with logic of search.
Thanks for anything.
For Cosmos Db Gremlin support
g.V().has('foo', TextP.containing('search'))
You can find the documentation Microsoft Gremlin Support docs And TinkerPop Reference
For JanusGraph with Gremlin Python (gremlin_python):
from gremlin_python.process.traversal import TextP
g.V().has('foo', TextP.containing('search'))
Source: https://docs.janusgraph.org/index-backend/text-search/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With