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

Popular from OpenSearch

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

Kylie Wagar-Dirks Mar 31, 2026 204 views

3
OpenSearch, Hybrid Vectors, and AI
OpenSearch, Hybrid Vectors, and AI

OpenSearch Apr 1, 2026 138 views

5
Search modernization with OpenSearch: From Vector Search to Agentic AI
Search modernization with OpenSearch: From Vector Search to Agentic AI

Pallavi Priyadarshini Mar 13, 2026 133 views