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

Introducing new OpenSearch sparse and dense retrieval models
Introducing new OpenSearch sparse and dense retrieval models

Lekai Xing • Nov 26, 2026 • 2 shared categories

Mitigating CVE-2026-114938 in self-managed OpenSearch deployments
Mitigating CVE-2026-114938 in self-managed OpenSearch deployments

Craig Perkins • Nov 21, 2026 • 2 shared categories

Data Prepper 2.17 brings Splunk HEC compatibility and JDBC source coordination
Data Prepper 2.17 brings Splunk HEC compatibility and JDBC source coordination

Srikanth Padakanti • Nov 13, 2026 • 2 shared categories

Inside open source maintainership: Realities, myths, and community growth
Inside open source maintainership: Realities, myths, and community growth

Kris Freedain • Nov 10, 2026 • 2 shared categories

NVIDIA Nemotron embeddings for agentic search in OpenSearch
NVIDIA Nemotron embeddings for agentic search in OpenSearch

Yuxuan Zong • Oct 21, 2026 • 2 shared categories

Popular from OpenSearch