- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用本地 MongoDB 实例制作“elasticsearch-river-mongodb”插件。
我能够摆脱 404 异常。但是,我对 ElasticSearch 索引的所有查询都没有返回任何匹配项。
以下是我按顺序执行的步骤。
rs0:PRIMARY> rs.status()
{
"set" : "rs0",
"date" : ISODate("2013-05-21T17:42:41Z"),
"myState" : 1,
"members" : [
{
"_id" : 0,
"name" : "127.0.0.1:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 865,
"optime" : {
"t" : 1369157994,
"i" : 1
},
"optimeDate" : ISODate("2013-05-21T17:39:54Z"),
"self" : true
}
],
"ok" : 1
}
(ES_HOME/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.4.0)
(ES_HOME/bin/plugin -install richardwilly98/elasticsearch-river-mongodb/1.4.0)
purl -XPUT 'http://`127.0.0.1`:9200/_river/mongodb/_meta' -d '{
"type": "mongodb",
"mongodb": {
"db": "players",
"collection": "scores"
},
"index": {
"name": "scoresindex",
"type": "score"
}
}'
db.oplog.rs.find()
集合返回新的更新rs0:PRIMARY> db.oplog.rs.find()
{ "ts" : { "t" : 1369152540, "i" : 1 }, "h" : NumberLong(0), "v" : 2, "op" : "n", "ns" : "", "o" : { "msg" : "initiating set" } }
{ "ts" : { "t" : 1369152706, "i" : 1 }, "h" : NumberLong("7734203254950592529"), "v" : 2, "op" : "i", "ns" : "players.scores", "o" : { "_id" : ObjectId("519b9cc2871b3116f0b8006e"), "name" : "rohit", "score" : 20 } }
{ "ts" : { "t" : 1369157720, "i" : 1 }, "h" : NumberLong("2546253279621321716"), "v" : 2, "op" : "i", "ns" : "test.scores", "o" : { "_id" : ObjectId("519bb058b6fd31855ec8b0af"), "name" : "karthik", "score" : 20 } }
{ "ts" : { "t" : 1369157994, "i" : 1 }, "h" : NumberLong("-3356531630527802451"), "v" : 2, "op" : "i", "ns" : "test.scores", "o" : { "_id" : ObjectId("519bb16ab6fd31855ec8b0b0"), "name" : "dinesh", "score" : 20 } }
我面临的问题是:使用以下命令在 ElasticSearch 上搜索
curl -XGET 'http://`127.0.0.1`:9200/scoresindex/_search?q=name:dinesh'
对于新添加的文档到 MongoDB 上的分数集合不返回任何结果。
我已经尝试将文档直接发布到 ES,它确实返回了结果,但不是来自 MongoDB 中的文档。
有什么我想念的吗?提前感谢您的帮助。
谢谢
最佳答案
根据project 1 MongoDB 2.4.3 仅在江河1.6.6及以上版本支持。您运行的是哪个版本的 Elasticsearch?
请看wiki page "install guide" section .
谢谢, 理查德。
关于ElasticSearch 使用 MongoDB-River 插件返回零命中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16686058/
当我尝试使用动态模板来指定映射时,将对象以外的所有内容都视为字符串,则River失败。 示例-我首先尝试为我的数据库清除所有先前的索引和河流-tempTest。 curl -XDELETE 'loca
我正在使用Elasticsearch 1.3.0版本。当我这样使用Wikipedia插件版本2.3.0创建河流时 PUT _river/my_river/_meta -d { "type" : "
我成功地为MongoDB创建了Elastic搜索河。 这是我使用/创建的索引: { "type": "mongodb", "mongodb": { "collectio
我安装了一张ouchdb(1.2.1),并且想要实现搜索引擎(elasticsearch) 但我想将搜索引擎单独安装。 所以我在不同的机器上安装了elascticsearch和插件(elasticse
我正在尝试使用elasticsearch搜寻器 https://github.com/codelibs/elasticsearch-river-web 我正确地执行了所有提到的步骤,但是我不知道如何启
我需要编写一些每天运行一次的索引作业,用于查询 Oracle 数据库表并为 ElasticSearch 建立索引。由于存在表依赖性,一些表首先索引,其他表其次索引。但围绕索引过程,我需要增强进入 ES
是否有人能够为我提供一种简单的方法,在我设计的只有一个敌人的游戏中实现第二艘敌方战舰,这是我目前的代码: import java.util.*; //Scanner that reads user i
我正在使用适用于 Elasticsearch 的 MySQL JPrante JDBC River 插件来索引来自 MySQL 的数据。 在记录集中,我有字段经度 (float)、纬度 (float)
已关闭。此问题旨在寻求有关书籍、工具、软件库等的建议。不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以
在我的 MySQL 中: mysql> select * from cc; +----+------+ | id | name | +----+------+ | 1 | aa | | 2 |
我使用 mongodb 将登录数据存储为一个集合,例如: //userA 登录模块 mA: { "_id" : ObjectId("uuid 1"), "user" : "userA",
我已经成功地将其用于索引单个 使用JDBC河进行收集。但是,我不知道如何索引多个 从mysql收集。 这适用于单个集合: curl -XPUT 'http://localhost:9200/_rive
介绍 我目前正在为一家公司从事项目,到目前为止,一切都很好。我们正在生产中。我们已经看到我们的质量检查人员最近发现了ElasticSearch的一些奇怪行为。我们正在将ElasticSearch与Mo
我使用以下脚本设置了我的河流: curl -XPUT 'localhost:9200/_river/foo/_meta' -d '{ "type" : "jdbc", "jdbc" :
我正在尝试使用本地 MongoDB 实例制作“elasticsearch-river-mongodb”插件。 在 http://satishgandham.com/2012/09/a-complete
我正在尝试将 ElasticSearch 与 MySQL 结合使用。 JDBC River似乎正是我想要的,但我无法将数据插入 jdbc/jdbc 以外的任何地方,使用: curl -XPUT 'lo
我在 Wind River Linux 上工作。失败的依赖错误。谁能告诉我我必须做什么?从过去的一天开始我一直在尝试 root@AC-04:/home/mysql# rpm -ivh MySQL-se
我试图从礼貌中做这个练习: 一只小 Frog 想要到达河的对岸。 Frog 目前位于位置 0,想要到达位置 X。树叶从树上落到河面上。 给定一个非空的零索引数组 A,它由 N 个表示落叶的整数组成。
这可能是个愚蠢的问题,但我找不到任何相关信息。我找到了 github,但在我使用命令后没有任何反应。 所以,在我安装插件后,它工作正常,我使用这个命令来创建索引。 curl -XPUT localho
是否有任何官方的 mongodb river 可用于 elasticsearch ?我通过模块 mogoose 在 node.js 中使用 mongodb。我在 http://www.matt-rei
我是一名优秀的程序员,十分优秀!