【发布时间】:2022-12-18 12:48:55
【问题描述】:
我当前的弹性搜索查询是-
{
"must": [
{
"range": {
"firstClosedAt": {
"gte": 1667948400000,
"lte": 1668034800000
}
}
},
{
"term": {
"status": "CLOSED"
}
}
我想修改它,如果“firstClosedAt”为空或不存在,则查找“closedAt”。 就像我们在 sql 中有 coalesce("firstClosedAt","closedAt")
帮助将不胜感激
【问题讨论】:
标签: elasticsearch coalesce opensearch