elasticsearch - Elasticsearch文档数量未反射(reflect)较高的索引编制率

标签 elasticsearch indexing document

当我们通过kibana监控Elasticsearch集群的运行状况时,对于特定索引,我们看到了更高的索引率。但是看来文件数量并没有成比例地增加。如何解决这两个问题。

document count

indexing rate

样本文件

{
“_index”:“finance_report_fgl_reporting_log”,
“_type”:“fgl_reporting_logs”,
“_id”:“1907688_POINTS_ACCOUNT_DEBIT”,
“_score”:9.445704,
“_资源”: {
“reportingLogId”:{
“journalId”:1907688,
“postingAccountId”:“POINTS_ACCOUNT”,
“postingAccountingEntry”:“借方”
},
“journalId”:1907688,
“journalEventId”:“trip_completed”,
“journalEventLogId”:“15db1f2b-b9d0-4edd-96f0-c4e4f8e68150”,
“journalAccountingRuleId”:“trip_completed_points_payment_rule”,
“journalReferenceId”:“174558200”,
“journalGrossAmount”:154.11,
“postingJournalId”:1907688,
“postingAccountingRuleId”:“trip_completed_points_payment_rule”,
“postingReferenceId”:“174558200”,
“postingAccountId”:“POINTS_ACCOUNT”,
“postingAccountingPeriod”:“2019_08”,
“postingAccountingEntry”:“DEBIT”,
“postingCurrencyTypeId”:“POINTS”,
“postingAmount”:154.11,
“accountId”:“POINTS_ACCOUNT”,
“accountStakeholderId”:“OPERATOR”,
“accountCurrencyTypeId”:“要点”,
“accountTypeId”:“CONTROLLER”,
“accountingRuleId”:“trip_completed_points_payment_rule”,
“accountingRuleDescription”:“积分支付”,
“eventId”:“trip_completed”,
“eventReferenceParam”:“body.trip.id”,
“createdDate”:“2019-08-29T10:03:32.000 + 0530”,
“modifiedDate”:“2019-08-29T10:03:32.000 + 0530”,
“createdBy”:“ENGINE”,
“modifiedBy”:“ENGINE”,
“version”:“3.12.6”,
“createYear”:2019年,
“routingKey”:“_2019”
}
},

最佳答案

通常会发生这种情况的原因是,您的索引操作不会创建新文档而是会更新现有文档。主要是因为您要将更新发送到已经存在的ID。

每隔几个小时,就会创建一批新的文档(根据图表中的跳转),因为您要创建一组新的ID。

由于解决方案隐藏在某处,因此请确保验证如何创建ID。

关于elasticsearch - Elasticsearch文档数量未反射(reflect)较高的索引编制率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58407981/

相关文章:

ruby-on-rails - HABTM 连接表需要两个索引吗?

directory - DQL查找文件夹中当前版本的文档

javascript - 领养节点和导入节点的区别

swift - 正确编写我的文件,以便在未安装我的应用程序时它们可以作为文本打开

python - elasticsearch 小写,如 %term% search

postgresql - 在 WHERE 子句中使用的所有列上创建索引是一种好习惯吗

elasticsearch - ElasticSearch SearchParseException:使用geo_distance过滤器时,解析失败[解析源失败]

java - 如何实现 n :m relation in Java?

elasticsearch - 当使用短语时,elasticsearch查询字符串未执行预期的模糊查询

ElasticSearch QueryParsingException 找不到 geo_point 字段