node_auto_index不存在 [英] node_auto_index does not exist

查看:224
本文介绍了node_auto_index不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用某些实体(如用户,媒体及其关系)创建了数据集.我的neo4j.properties文件为节点和关系都打开了自动索引编制.我还向node_keys_indexable添加了属性'type'.但是,在运行以下查询时出现以下错误.

I have created the data set with some entities like Users, Media and their relationships. My neo4j.properties file has auto indexing turned on for both nodes and relationships. I have also added an attribute 'type' to node_keys_indexable. However when I get the following error when running the following queries.

START user =node:node_auto_index(fn="Balaji") 
RETURN user.ln

Error: Index `node_auto_index` does not exist

我是neo4j的新手.感谢任何帮助.

I am new to neo4j. Appreciate any help.

感谢和问候 巴拉吉

推荐答案

是否在配置自动索引之前添加了节点?

did you add the nodes before you configured autoindexing?

然后,您必须通过运行如下所示的密码查询来重新索引节点:

Then you have to reindex your nodes, by for instance running a cypher query like this:

start n=node(*)
where has(n.type)
set n.type=n.type

这对于小型图形非常有效,对于较大的图形,您必须对其进行分页.

This works well for small graphs, for larger ones you have to page it.

start n=node(*)
with n
skip 25000 limit 25000 
where has(n.type)
set n.type=n.type

这篇关于node_auto_index不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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