2013-07-13 86 views
1

我想搜索Neo4j中的屬性,但它失敗。 這裏是代碼:密碼查詢無法匹配Neo4j中的屬性

==> "start n=node(*) match n.wordType = {'potent'} return n" 
==>      ^
neo4j-sh (0)$ start n=node:words(word='*') match n.wordType = 'potent' return n; 
==> SyntaxException: failed to parse MATCH pattern 

屬性存在,節點也存在。

任何人有任何想法?

回答

3

您正在匹配模式中輸入where子句。你的意思是:

start n=node(*) where n.wordType = 'potent' return n 

start n=node:words(word='*') where n.wordType = 'potent' return n; 

更重要的是,你可以做一個索引查找:

start n=node:words(wordType='potent') return n;