Beyond filter rewrite: How doc value skip indexes accelerate aggregations in OpenSearch
OpenSearch

Beyond filter rewrite: How doc value skip indexes accelerate aggregations in OpenSearch


Summary

This article details how the authors overcame limitations in previous date histogram aggregation optimizations in Elasticsearch. Previously, these optimizations (filter rewrite & multi-range traversal) required filtering and aggregation on the same field and couldn't handle complex subaggregations. They’ve now leveraged Lucene 10’s doc value skip indexes – a hierarchical summary of numeric data – to achieve up to 28x faster aggregations even when filter and aggregation fields are different, and to support complex subaggregations by enabling bulk counting or skipping of document intervals. This new approach operates directly on the aggregation field’s doc values, decoupling it from the filter and significantly improving performance for common analytical queries.
Read the Original Article

This article originally appeared on OpenSearch.

Read Full Article on Original Site

Related Articles

Online index migration and shard scaling in OpenSearch with the AOSC plugin
Online index migration and shard scaling in OpenSearch with the AOSC plugin

Arpit Singla Aug 19, 2026 2 shared categories

Introducing memory retention for agentic memory in OpenSearch
Introducing memory retention for agentic memory in OpenSearch

Erfan Ballew Aug 14, 2026 2 shared categories

The real cost of your observability stack
The real cost of your observability stack

Shenoy Pratik Gurudatt Aug 7, 2026 2 shared categories

Scaling Kubernetes Workloads with the OpenSearch KEDA Scaler
Scaling Kubernetes Workloads with the OpenSearch KEDA Scaler

Karsten Schnitter Jul 22, 2026 2 shared categories

Retrieve vectors 5x faster with docvalue_fields in OpenSearch
Retrieve vectors 5x faster with docvalue_fields in OpenSearch

Navneet Verma Jul 15, 2026 2 shared categories

Popular from OpenSearch