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

Benchmarking multimodal document search in OpenSearch: Three approaches compared
Benchmarking multimodal document search in OpenSearch: Three approaches compared

Nate Po Hong Lau Apr 22, 2026 2 shared categories

Advancing OpenSearch with gRPC and Protocol Buffers
Advancing OpenSearch with gRPC and Protocol Buffers

Karen Xu Mar 20, 2026 2 shared categories

Evaluating agentic search in OpenSearch
Evaluating agentic search in OpenSearch

Josh Palis Mar 19, 2026 2 shared categories

Popular from OpenSearch

2
Evaluating agentic search in OpenSearch
Evaluating agentic search in OpenSearch

Josh Palis Mar 19, 2026 18 views

3
Introducing the 2026-2027 OpenSearch Ambassadors
Introducing the 2026-2027 OpenSearch Ambassadors

Kylie Wagar-Dirks Mar 31, 2026 16 views