摘要:
背景 线上发现elasticsearch集群状态red,并且有个es节点jvm内存使用不断升高,直到gc后依然内存不够使用,服务停止。查看日志,elasticsearch出现OOM报错。 [2023-12-06T08:21:26,706][ERROR][o.e.b.ElasticsearchUnca 阅读全文 »
摘要:
通过定义keyword 的 "null_value" :"NULL",使得搜索是不用单独使用exists查询。统一用terms查询就能查询到想要的结果 利用constantScore和filter查询,跳过算分的步骤,提高性能 设置"index" :false 对于不用作为查询条件的字段,增加写的性 阅读全文 »