密码中的匹配子句

Mon*_*key 3 neo4j cypher

如何在cypher中的子句中进行匹配

例如,我想查找ID为1、2或3的电影。

match (m:movie {movie_id:("1","2","3")}) return m
Run Code Online (Sandbox Code Playgroud)

如果您要反对自动索引,则语法为

START n=node:node_auto_index('movie_id:("123", "456", "789")')
Run Code Online (Sandbox Code Playgroud)

与match子句有何不同

Eve*_*man 5

想法是您可以执行以下操作:

MATCH (m:movie)
WHERE m.movie_id in ["1", "2", "3"]
Run Code Online (Sandbox Code Playgroud)

但是,这将不使用从2.0.1开始的索引。这是新标签索引中缺少的功能,希望很快能解决。https://github.com/neo4j/neo4j/issues/861