How Gremlin query same sql like for search feature

前端 未结 7 927
栀梦
栀梦 2020-12-31 15:12

Im using OrientDB type graph. I need syntax of Gremlin for search same SQL LIKE operator

LIKE \'search%\' or LIKE \'%search%\'

I\'ve check

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-31 15:36

    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/

提交回复
热议问题