2013-05-09 53 views
1

我在使自動索引工作時遇到了一些麻煩。自動索引不起作用

雖然Neo4j的服務已停止,我改變了neo4j.properties文件,並設置:#node_auto_indexing=true

然後輸入我的索引鍵像這樣:#node_keys_indexable=Name,Type,GUID,CurrentVersion,DateTimeCreated,CurrentVersionDateTimeCreated,VersionCount,CustomerName,DocumentReferece,Version

然後我又開始了服務,也做了以下內容: neo4j-sh (0)$ index --create node_auto_index -t Node

我然後創建了一些節點和運行以下查詢:

neo4j-sh (0)$ start n = node:node_auto_index(Name = "Quote") return n; 

結果爲:

==> +---+ 
==> | n | 
==> +---+ 
==> +---+ 
==> 0 row 
==> 237 ms 

我使用neo4j-advanced-2.0.0-M02和Neo4jClient for .NET和C#。 有沒有什麼,我在這裏做錯了,或者有可能是我失蹤的任何其他配置步驟。

我曾嘗試以下: 12

回答

2

你真的有#在你的配置文件中的行前靜止 - 因爲如果是這樣,他們註釋掉?你不需要手動創建一個autoindex。

+0

我確定聽起來像一個小白吧! – 2013-05-09 13:22:17

+1

發生在我們身上;) – 2013-05-09 17:32:22