我得到了两个时间戳,如果它们 * 几乎 *(基础+ 5分钟)相同,我希望从结果中排除:
"base.timestamp": [
"2023-01-03T22:46:29.946Z"
"open.timestamp": [
"2023-01-03T22:51:21.025Z"
因此,如果open.timestamp在base. timestamp的5分钟内,我不想包括结果。
非常感谢!:)
我得到了两个时间戳,如果它们 * 几乎 *(基础+ 5分钟)相同,我希望从结果中排除:
"base.timestamp": [
"2023-01-03T22:46:29.946Z"
"open.timestamp": [
"2023-01-03T22:51:21.025Z"
因此,如果open.timestamp在base. timestamp的5分钟内,我不想包括结果。
非常感谢!:)
1条答案
按热度按时间d5vmydt91#
让我们考虑下面是你的样本数据在Elasticsearch:两份文件相差超过5分钟。
您可以使用以下查询:
上述查询将返回以下响应: