neo4j - Neo4j v4.1.5 社区版 CREATE INDEX 无法识别 OPTIONS
问题描述
我正在尝试使用带有 OPTIONS 的 CYPHER 在 Neo4j 4.1.5 Community Edition 上创建索引,但它不起作用。
命令:
CREATE INDEX index_content_name IF NOT EXISTS FOR (n:__Content) ON (n.name) OPTIONS { indexProvider: 'lucene+native-3.0' }
错误:
Invalid input 'O': expected whitespace, comment, ';' or end of input (line 1, column 77 (offset: 76))
"CREATE INDEX index_content_name IF NOT EXISTS FOR (n:__Content) ON (n.name) OPTIONS { indexProvider: 'lucene+native-3.0'
社区版是否禁用了此功能?
如果没有,我做错了什么?
解决方案
该OPTIONS
子句是在 Neo4j 4.2.0 中添加的(请参见此处的更改日志:https ://github.com/neo4j/neo4j/wiki/Neo4j-4.2-changelog#cypher-2 )
阅读文档时,请确保选择正确版本的 Neo4j 服务器:
推荐阅读
- docker - 拉取 Artifactory Docker 镜像
- javascript - 目标为es5时Typescript导入es6 javascript文件
- javascript - 使用 react-ref 操作 CSS 与使用 react setState() 与 react-redux 状态
- javascript - 使用 javascript 单击按钮时更改元素的背景颜色样式
- css - SCSS 在父元素悬停之前更改
- java - CardView 可以从回收站视图中实现吗?
- html - 无法向网页添加反应
- python - 如何在 if 语句中将字符串作为变量?
- excel - 如何在数组中输入最后一列以将文本转换为列?
- c# - 将具有结构数组的结构从 c# 传递到 c++