我试图让ElasticSearch工作,特别是与River Plugin一起工作。出于某种原因,我无法让它工作。我已经包括了我使用尝试做的过程中,发现here:CouchDB,Elastic Search和River Plugin无法正常运行
curl -XDELETE 'http://localhost:9200/_all/'
响应:
{
"ok": true,
"acknowledged": true
}
这让我知道我在一组空elasticsearch工作实例。
我有一个现有的数据库,名为测试和河流插件已经安装。无论如何测试,以确认河插件已安装并运行?
我发出以下命令:
curl -XPUT 'http://localhost:9200/_river/my_index/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "localhost",
"port" : 5984,
"db" : "my_couch_db",
"filter" : null
}
}'
my_couch_db是一个真正的数据库,我看到它在蒲团。里面有一个文件。
响应:
{
"ok": true,
"_index": "_river",
"_type": "my_index",
"_id": "_meta",
"_version": 1
}
现在,在这一点上,我的理解是elasticseach应该工作,我在本教程中看到的。
我尝试查询,只是为了找到任何东西。我去
http://localhost:9200/my_couch_db/my_couch_db.
响应:
No handler found for uri [/my_couch_db/my_couch_db] and method [GET]
有什么奇怪的是,当我去
localhost:5984/my_couch_db/__changes
我得到
{
"error": "not_found",
"reason": "missing"
}
任何人有任何想法,这哪一部分我搞砸了?