elasticsearch 索引Neo4j以使用Elasticsearch
我正在尝试安装图形辅助搜索,以将Neo4j与ElasticSearch 2.3.1集成,如图所示。但是我正在努力用curl定义索引 当我尝试以下任何curl命令时:
elasticsearch 索引Neo4j以使用Elasticsearch,
elasticsearch,neo4j,graphaware,
elasticsearch,Neo4j,Graphaware,我正在尝试安装图形辅助搜索,以将Neo4j与ElasticSearch 2.3.1集成,如图所示。但是我正在努力用curl定义索引 当我尝试以下任何curl命令时: curl -XPUT http://localhost:9200/Person/_settings?index.gas.neo4j.user=neo4j 我收到以下错误消息: {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such
curl -XPUT http://localhost:9200/Person/_settings?index.gas.neo4j.user=neo4j
我收到以下错误消息:
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"Person","index":"Person"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"Person","index":"Person"},"status":404}
让我们以电影数据库Movie,Person为例。我如何定义和配置Neo4j来索引电影和人物,以便使用Elasticsearch调用它们
更新
例如,在执行以下操作时:
CURL XGET http://localhost:9200/person/_search?pretty=true
我得到这个结果:
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}
但实际上我期望的是返回所有Person节点。
如何告诉Elasticsearch的人物索引指向Neo4j中的人物节点
以下是人员索引的设置:
卷曲http://localhost:7474/person/_settings?pretty
将设置添加到ES索引需要创建此索引,如错误所述
您可以通过发出以下CURL请求来执行此操作:
CURL -XPUT "http://localhost:9200/Person
使用Elasticsearch扩展插件,使您能够通过基于图形的建议增强搜索结果,这要求您至少对Elasticsearch本身有一个最低限度的了解
我强烈建议您在使用任何插件之前先学习Elasticsearch的基础知识。感谢您提供的解决方案和建议。我开始学习弹性搜索。只有一件事,我想Person应该是小写的:Person和后面的missing。同样,在使用CURL请求创建索引并按照配置部分所示配置索引之后,我仍然无法从Elasticsearch查询Neo4j数据。请参阅更新您需要将数据从Neo4j复制到ES。请更彻底地阅读插件文档和我们写的博客文章。为什么要从Elasticsearch查询Neo4j中的数据?目标是增强搜索结果,以便使用基于图形的算法使用ES数据通过ES查询找到的结果。
CURL -XPUT "http://localhost:9200/Person