Skip to content

Add missing bucket aggregation types#73

Merged
GokselKUCUKSAHIN merged 2 commits intomainfrom
feature/bucket-aggregations
Feb 7, 2026
Merged

Add missing bucket aggregation types#73
GokselKUCUKSAHIN merged 2 commits intomainfrom
feature/bucket-aggregations

Conversation

@GokselKUCUKSAHIN
Copy link
Member

Implement the following bucket aggregations with full DSL support:

  • FilterAgg: Single filter bucket aggregation with Aggs, Meta
  • FiltersAgg: Named multi-bucket filter aggregation with Filter, OtherBucket, OtherBucketKey, Aggs, Meta
  • RangeAgg: Numeric range bucket aggregation with Range, Keyed, Missing, Aggs, Meta + RangeEntry (From, To, Key)
  • DateRangeAgg: Date range bucket aggregation with Range, Format, Keyed, Missing, TimeZone, Aggs, Meta + DateRangeEntry (From, To, Key)
  • HistogramAgg: Fixed-interval numeric histogram with MinDocCount, ExtendedBounds, HardBounds, Offset, Keyed, Missing, Order, Aggs, Meta
  • DateHistogramAgg: Date-based histogram with CalendarInterval, FixedInterval, Format, TimeZone, Offset, MinDocCount, ExtendedBounds, HardBounds, Keyed, Missing, Order, Aggs, Meta
  • ReverseNestedAgg: Reverse nested aggregation with Path, Aggs, Meta

All implementations follow existing project conventions and patterns.

Implement the following bucket aggregations with full DSL support:

- FilterAgg: Single filter bucket aggregation with Aggs, Meta
- FiltersAgg: Named multi-bucket filter aggregation with Filter,
  OtherBucket, OtherBucketKey, Aggs, Meta
- RangeAgg: Numeric range bucket aggregation with Range, Keyed,
  Missing, Aggs, Meta + RangeEntry (From, To, Key)
- DateRangeAgg: Date range bucket aggregation with Range, Format,
  Keyed, Missing, TimeZone, Aggs, Meta + DateRangeEntry (From, To, Key)
- HistogramAgg: Fixed-interval numeric histogram with MinDocCount,
  ExtendedBounds, HardBounds, Offset, Keyed, Missing, Order, Aggs, Meta
- DateHistogramAgg: Date-based histogram with CalendarInterval,
  FixedInterval, Format, TimeZone, Offset, MinDocCount, ExtendedBounds,
  HardBounds, Keyed, Missing, Order, Aggs, Meta
- ReverseNestedAgg: Reverse nested aggregation with Path, Aggs, Meta

All implementations follow existing project conventions and patterns.
@GokselKUCUKSAHIN GokselKUCUKSAHIN self-assigned this Feb 7, 2026
@GokselKUCUKSAHIN GokselKUCUKSAHIN added enhancement New feature or request go Pull requests that update go code labels Feb 7, 2026
@GokselKUCUKSAHIN GokselKUCUKSAHIN linked an issue Feb 7, 2026 that may be closed by this pull request
Add test cases verifying Order method generates correct JSON output for HistogramAgg and DateHistogramAgg with _count desc ordering.
@GokselKUCUKSAHIN GokselKUCUKSAHIN merged commit 244418f into main Feb 7, 2026
14 checks passed
@GokselKUCUKSAHIN GokselKUCUKSAHIN deleted the feature/bucket-aggregations branch February 7, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement missing Bucket Aggregation Queries

1 participant