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

Popular from OpenSearch

1
Introducing the 2026-2027 OpenSearch Ambassadors
Introducing the 2026-2027 OpenSearch Ambassadors

Kylie Wagar-Dirks Mar 31, 2026 84 views

4
OpenSearch, Hybrid Vectors, and AI
OpenSearch, Hybrid Vectors, and AI

OpenSearch Apr 1, 2026 51 views