Abstract
The inverted index has been the standard for information retrieval for decades, yet it faces performance bottlenecks during the intersection of massive postings lists. This paper introduces the group-list, a novel data structure based on a hierarchical Prefix Tree (P-tree). By utilizing pre-order and post-order encoding, the group-list allows for constant-time descendant identification, significantly accelerating Boolean query processing. Experimental evaluations show that the group-list provides a 4x to 5.5x speedup over traditional inverted indices for frequent and mixed-term queries while maintaining a comparable storage footprint.
Introduction
As datasets scale to billions of documents, the computational overhead of intersecting long lists of document identifiers (IDs) becomes a primary bottleneck in search systems. While much research has focused on compressing these lists, the efficiency of the query process itself remains a challenge. This paper addresses this by proposing the group-list, a structure that organizes document IDs into a hierarchy to exploit structural relationships between terms, particularly for high-frequency items that dominate query costs.
Methodology
The group-list approach centers on two main components: the Prefix Tree (P-tree) and the group-list data structure.
P-tree Construction and Encoding
The system first organizes terms into a P-tree based on their frequency. Frequent terms are placed in non-leaf nodes, while infrequent terms are clustered in leaf nodes. To enable efficient querying, each node is assigned a pp_order—a pair of codes representing its pre-order and post-order position in the tree.
This encoding allows the system to determine if one term's document set is a subset of another's branch in constant time, bypassing the need for exhaustive element-wise matching.
The Group-list Structure
The group-list replaces the flat postings list of a traditional inverted index. Each term maps to a set of tuples, where each tuple contains the node's pp_order and its associated did_set (document identifiers).
Experimental Evaluation
The authors compared the group-list against a standard inverted index using a synthetic dataset of 1,000,000 documents generated by the IBM Quest Synthetic Data Generator.
Performance Results
- Frequent Term Queries (FQ): The group-list demonstrated a significant performance advantage, running 4x to 5.5x faster than the inverted index. For instance, a 6-term frequent query was processed in ~13.76s compared to ~74.82s for the baseline.
- Mixed Queries (MQ): For queries involving both frequent and rare terms, the group-list maintained a consistent 5x speedup.
- Infrequent Term Queries (IQ): The inverted index performed slightly better (15-20% faster) for queries consisting solely of rare terms. This is expected, as the hierarchical grouping provides less benefit when document IDs are sparse and do not share common tree branches.
Key Insights and Discussion
The group-list's efficiency stems from the "descendant shortcut," which uses tree-traversal logic to simplify set theory operations. By partitioning terms by frequency, the structure optimizes for the most computationally expensive queries. Notably, the addition of tree metadata does not significantly increase the index size; the group-list remains nearly identical in size to a standard inverted index due to reduced redundancy in term-to-document mappings.
Conclusion
The group-list offers a compelling alternative to the inverted index for large-scale search applications. While it excels at processing frequent and mixed queries, future work will address its performance on sparse, infrequent data and explore its potential in distributed computing environments. Integrating this structure into modern retrieval engines could lead to substantial improvements in query throughput and latency.
Summary updated