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] Range Aggregations with metric aggregation #16553

Open
sandeshkr419 opened this issue Nov 4, 2024 · 0 comments
Open

[Star Tree] [Search] Range Aggregations with metric aggregation #16553

sandeshkr419 opened this issue Nov 4, 2024 · 0 comments
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 range aggregations with metric aggregations.

Example query shape:

{ "size": 0,
    "aggs": {
        "low_value": {
            "range": {
                "field": "status",
                "ranges": [
                    {
                        "from": 198,
                        "to": 201
                    },
                    {
                        "from": 202,
                        "to": 203
                    },
                    {
                        "from": 204,
                        "to": 401
                    }
                ]
            },
            "aggs": {
                "sum_status": {
                    "sum": {
                        "field": "status"
                    }
                }
            }
        }
    }
}

Describe the solution you'd like

Vanilla rag aggregations with no metric aggregations are already optimized and would most likely not benefit from star-tree optimization. Its specifically where metric aggregations (sum, min, max, avg) are required, those cases 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

No branches or pull requests

1 participant