Search code examples
amazon-web-servicesgremlinamazon-neptune

Does AWS Neptune support text search and sorting with Gremlin?


I'm using AWS Neptune with Gremlin. Is there a way of using wildcard for search like ' % title % ' & sorting something with order by asc / desc ?


Solution

  • Neptune supports Order().by() you just need to use the ‘incr’ and ‘decr’ Keywords.

    There is currently no wildcard support. You can simulate a starts with semantic using the between() step however.

    Additional text predicates are being added to ApacheTinkerpop in an upcoming release and this is definitely recognized as a common use case. I expect to see additional text support added to Neptune over time as well.

    UPDATED (November 17th 2019) :

    Amazon Neptune now supports the Apache TinkerPop 3.4.1 release. This release added additional text predicates such as startingWith, endingWith and containing to the Gremlin language.

    Cheers Kelvin