Running a case-insensitive cypher query

前端 未结 4 919
生来不讨喜
生来不讨喜 2020-12-14 00:08

Is it possible to run a case-insensitive cypher query on neo4j?

Try that: http://console.neo4j.org/

When I type into this:

start n=node(*) 
m         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 00:30

    If anybody is looking on how to do this with a parameter, I managed to do it like this.

    query = "{}{}{}".format('Match (n) WHERE n.pageName =~ "'"(?i)", name, '" RETURN n')
    

    and "name" is the variable or your parameter

提交回复
热议问题