2015-05-29 84 views

回答

0

cosider這個破解方法: Update to: Adding node to Neo4j Spatial Index

黑客是:

POST /db/data/transaction/commit HTTP/1.1 
Host: localhost:7474 
Accept: application/json 
Content-Type: application/json 
Cache-Control: no-cache 

{ 
    "statements" : [ 
     { "statement" : "match (n:City) set n.id=id(n)" } 
    ] 
} 

然後做暗號查詢。

0

不,您不能在空間(尚未)使用模式索引。

您必須將空間索引配置爲手動索引或自動索引,然後向其添加節點。然後空間密碼查詢起作用。

+0

自動索引可以設置爲neo4j.properties文件中的空間索引嗎?看起來插件中有bug。在使用密碼查詢之前,我應該設置ID。 – navins