优化 Terms Agg 的 limit 设置逻辑,修复范围查询 IP 类型和时间类型转换的问题#90
Open
zat366 wants to merge 2 commits intoTongchengOpenSource:mainfrom
Open
优化 Terms Agg 的 limit 设置逻辑,修复范围查询 IP 类型和时间类型转换的问题#90zat366 wants to merge 2 commits intoTongchengOpenSource:mainfrom
zat366 wants to merge 2 commits intoTongchengOpenSource:mainfrom
Conversation
- 扩展了对子聚合为空情况的处理,增加了对特殊聚合组合的处理 - 引入了对 maxResultRow 的考虑,以确保数据完整性 - 优化了 limit 的设置逻辑,提高了查询结果的准确性
…ull 时使用 high 值 - 修复时间类型范围查询的上界比较运算符错误
Author
在我们一个特殊场景聚合时,如果不做groupby 会有报错超过 maxResultRow 聚合语句是 "aggs": {
"2": {
"terms": {
"field": "client_ip",
"order": {
"_count": "desc"
},
"size": 20
},
"aggs": {
"3": {
"terms": {
"field": "status",
"order": {
"_count": "desc"
},
"size": 5
}
}
}
}
}所以对这个特殊场景做了limit 限制 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(聚合策略): 优化 Terms Agg 的 limit 设置逻辑
fix(range): 修复范围查询 IP 类型和时间类型转换的问题- 优化 IP 类型判断逻辑,优先使用 low 值判断,low 为 null 时使用 high 值