Neo4j 2 Cypher fuzzy search

↘锁芯ラ 提交于 2019-12-19 04:24:19

问题


I'm using Neo4j 2 REST API and I have the ability to add plugins.

I have an entity in my database with the label 'Entity' and name 'United Kingdom'.

How do I execute a fuzzy search to find this entity.

I would like to be able to find it using queries like

  • United
  • Kingdom
  • Uniter Kingdom
  • United Kinjdom

So the .*<query>.* won't do it.

I notice there was support for something like this in previous versions.

start n = node:index("name : 'United Kinjom'~0.2") return n

But this doesn't appear to work anymore.


回答1:


It still works. Adding fulltext search to the automatic new schema indexes is on the roadmap. Until then you can still use the "legacy" indexes.

http://jexp.de/blog/2014/03/full-text-indexing-fts-in-neo4j-2-0/



来源:https://stackoverflow.com/questions/22887087/neo4j-2-cypher-fuzzy-search

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!