Neo4j 2 Cypher模糊搜索 [英] Neo4j 2 Cypher fuzzy search

查看:307
本文介绍了Neo4j 2 Cypher模糊搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Neo4j 2 REST API,并且能够添加插件.

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.

我希望能够使用

  • 美国
  • 王国
  • 团结王国
  • 联合王国(Jinjdom)

所以.*<query>.*不会这么做.

我注意到以前的版本中已经支持类似的东西.

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.

推荐答案

它仍然有效.将全文搜索添加到自动新模式索引中的路线图.在此之前,您仍然可以使用旧版"索引.

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/

这篇关于Neo4j 2 Cypher模糊搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆