简体   繁体   English

并非所有文档都使用ElasticSearch和MongoDB编制索引

[英]Not all documents are indexed with ElasticSearch and MongoDB

I am using ElasticSearch 1.1.0 (I was running 1.2.0 but had issues with a ElasticSearch plugin) and MongoDB 2.6.1. 我正在使用ElasticSearch 1.1.0(我正在运行1.2.0,但是ElasticSearch插件有问题)和MongoDB 2.6.1。 I've installed them using the tutorial provided at enter link description here . 我已经使用此处输入链接说明中提供的教程安装了它们。 When I create an index using 当我使用创建索引时

curl -XPUT "localhost:9200/_river/tenders/_meta" -d '{       
    "type": "mongodb",
    "mongodb": {
        "servers": [
            { "host": "127.0.0.1", "port": 27017 }
        ],
        "options": { "secondary_read_preference": true },
        "db": "tenderdb",
        "collection": "tenders"
    },
    "index": {
        "name": "tendersidx",
        "type": "page"
    }
}'

Indexing starts fine of the collection but it only indexes a part of the collection. 索引开始收集的很好,但它只索引收集的一部分。 Eg the collection has at the moment 5184 records while only 1060 are indexed. 例如,该集合目前有5184条记录,而只有1060条被索引。

Avish的评论的伎俩,他写道:‘ElasticSearch河流仅监视另一数据储存改变;你的河水应该只跟踪添加到河流已成立后收缴的文件。’

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM