Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Star Tree] [Search] Bucket terms Aggregation with metric aggregation #16551

Open
sandeshkr419 opened this issue Nov 4, 2024 · 0 comments · May be fixed by #17165
Open

[Star Tree] [Search] Bucket terms Aggregation with metric aggregation #16551

sandeshkr419 opened this issue Nov 4, 2024 · 0 comments · May be fixed by #17165
Labels
enhancement Enhancement or improvement to existing feature or request Search:Aggregations

Comments

@sandeshkr419
Copy link
Contributor

Is your feature request related to a problem? Please describe

This is to support bucket aggregations (single-level) with metric aggregations.

Example query shape:

{
    "size": 0,
    "aggs": {
        "response_codes": {
            "terms": {
                "field": "status",
                "size": 100
            },
            "aggs": {
                "sum_status": {
                    "sum": {
                        "field": "status"
                    }
                }
            }
        }
    }
}

Describe the solution you'd like

Vanilla bucket aggregations on keyword fields with no metric aggregations are already optimized and would most likely not benefit from star-tree optimization. Its for numeric fields, where metric aggregations (sum, min, max, avg) would gain performance benefits.

Related component

Search:Aggregations

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Search:Aggregations
Projects
Status: Todo
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

1 participant