Azure Cosmos DB Graph Wildcard search

后端 未结 2 1073
失恋的感觉
失恋的感觉 2021-02-05 18:33

Is it possible to search Vertex properties with a contains in Azure Cosmos Graph DB?

For example, I would like to find all persons which have \'Jr\' in thei

2条回答
  •  我在风中等你
    2021-02-05 18:48

    The Azure team has now implemented Tinkerpop predicates for String

    The Azure team has "announced" this to a user here on their feedback website.

    I haven't tested all of them, but containing works for me (it is case sensitive though)

    g.V().hasLabel('doc').or(__.has('title', containing('truc')), __.has('tags', containing('truc')))
    

    TextP.startingWith(string)

    Does the incoming String start with the provided String?

    TextP.endingWith(string)

    Does the incoming String end with the provided String?

    TextP.containing(string)

    Does the incoming String contain the provided String?

    TextP.notStartingWith(string)

    Does the incoming String not start with the provided String?

    TextP.notEndingWith(string)

    Does the incoming String not end with the provided String?

    TextP.notContaining(string)

    Does the incoming String not contain the provided String?

提交回复
热议问题