现在的位置: 首页 > 问答 > 正文

Fulltext Search in Neo4j

2017年01月05日 问答 ⁄ 共 740字 ⁄ 字号 暂无评论

I have question on full text search using neo4j. Followed the instruction in the webpage, i enabled the full text search.

Full Text Search Guide

CREATE (p:Place {name:"Chicago"})

1) Run the command: START n=node:node_auto_index("name:*C*") RETURN n;
Result: 
+------------------------------+
| n                            |
+------------------------------+
| Node[65263]{name:"Chicago"}  |
+------------------------------+
1 rows

2) Run the command: START n=node:node_auto_index("name:Chicago") RETURN n;
Result:
+---+
| n |
+---+
+---+
0 row

3) START n=node:node_auto_index("name=Chicago") RETURN n;
Result: 
null

My question is: How can modify the search (2) START n=node:node_auto_index("name:Chicago") RETURN n; to give the result Chicago ?

Also, would we not specify the field name in the command, (i.e. search all fields which contains "Chicago" keyword in all nodes) ?

Thanks.

给我留言

您必须 [ 登录 ] 才能发表留言!

×