1

自動インデックス作成を試し、neo4j.properties ファイルを次のように設定しました。

# Autoindexing

# Enable auto-indexing for nodes, default is false
#node_auto_indexing=true

# The node property keys to be auto-indexed, if enabled
#node_keys_indexable=Name,Type,CurrentVersion,DateTimeCreated,CurrentVersionDateTime,VersionCount,  CustomerName,DocumentReference,Version

以前はnode_auto_indexing=truefalse に設定してテスト用に独自のインデックスを作成していましたが、すべてのノード プロパティを自動インデックス化したいですか?

そして、このサイファークエリを実行すると、0行が返されますか?

start n = node:node_auto_index(Name = "Mike") return n;

ここで何が間違っていますか?

4

2 に答える 2

2

node_auto_indexing が false のときにノードを作成しましたか? その場合、プロパティを true に設定しても、これらの既存のノードは「自動的に」インデックス付けされません。自動インデックスに手動で追加する必要があります ( http://docs.neo4j.org/chunked/milestone/auto-indexing.html )

node_auto_indexing=true で作成された新しいノードは、手動で介入しなくてもインデックスが作成されることに注意してください。

于 2013-05-08T13:59:19.847 に答える
0

バージョン 1.7-SNAPSHOT でもこの問題が発生しました。

2 つのプロパティがあり、一方は他方の複製であると思われます。

node_autoindexing_enabled=true # Commented out in neo4j.properties - but has no effect
node_auto_indexing=true        # Not in the file at all, but when added did index new nodes
node_keys_indexable=name,_id

2番目のものはインデックス作成を有効にしているようですが、1番目のものはそうではありません。これがバグである場合は、対処されることを願っています (または、ダウンロードしたバージョン以降に対処されています)。

于 2013-06-20T03:40:24.387 に答える