gpt4 book ai didi

indexing - 我在 Cypher 中的 neo4j 索引查询有什么问题?

转载 作者:行者123 更新时间:2023-12-02 19:15:10 26 4
gpt4 key购买 nike

使用 neo4j 社区 1.9 版本,我尝试使用小型“Cineast”数据集和“Matrix”数据集进行索引查询。在 webadmin 界面中,Cineasts 集有一个名为 Actor 的索引。

START n=node:Actor("name:*") RETURN n;

这应该返回所有 Actor 的名字,对吗?我没有收到错误消息,但行数为零。

我知道那里有一个名叫 Paul Norell 的 Actor ,所以我尝试了这个,但仍然得到相同的结果。

START n=node:Actor(name="Paul Norell") RETURN n;

关于我做错了什么有什么想法吗?如何检查名称键/值对是否已编入索引,甚至哪些键/值对在索引中?

最佳答案

正如 Google 群组中的回答:

Actor.name 未在该数据集中建立索引。

只有Actor.idMovie.id,还有一个电影标题的“搜索”索引。

START n=node:Actor('id:*') RETURN count(*);

START n=node:Movie('id:*') RETURN count(*);
START n=node:Movie(id="601") RETURN n;

START n=node:search('title:*') RETURN count(*);

关于indexing - 我在 Cypher 中的 neo4j 索引查询有什么问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14159991/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com