在 Neo4j 中使用嵌套 属性(带点)删除索引

Drop index with on nested property (with a dot) in Neo4j

我在 Java 中将 Neo4j 与 Bolt 和 Neo4j 驱动程序一起使用。当我尝试 运行 以下命令:

DROP INDEX ON :SingleBoardComputer(id.id)

注意 属性 的名称实际上是 "id.id"(基本上是一个点)。

我有以下错误:

Neo.ClientError.Statement.SyntaxError: Invalid input '\': expected whitespace or a list of property key names (line 1, column 36 (offset: 35))
"DROP INDEX ON :SingleBoardComputer(id.id)"

有什么方法可以使用驱动程序删除索引吗?

我正在使用 Neo4j 3.3.5 和 neo4j 驱动程序 1.6.1

我很惊讶,因为我可以毫无问题地创建索引。

谢谢

解决办法是转义场:

DROP INDEX ON :SingleBoardComputer(`id.id`)