Description
LUCENE-9476 added the ability to do bulk ordinal -> path lookups, but we have no bulk lookup in the other direction. I think we can find some efficiency gains if we add bulk lookup for paths, which we could then put behind a Facets#getSpecificValues API for retrieving facet values for multiple paths in bulk. There's some nuance down in the depths of MultiTerms, so maybe there's nothing to be gained here, but I think there ought to be (I'll try to look in more detail later, but wanted to open an issue to track the idea in case I forget). A few thoughts:
- We can seek the terms dictionaries in a single direction if we sort the paths before looking them up.
- We should be able to reuse postings.
Description
LUCENE-9476 added the ability to do bulk ordinal -> path lookups, but we have no bulk lookup in the other direction. I think we can find some efficiency gains if we add bulk lookup for paths, which we could then put behind a
Facets#getSpecificValuesAPI for retrieving facet values for multiple paths in bulk. There's some nuance down in the depths of MultiTerms, so maybe there's nothing to be gained here, but I think there ought to be (I'll try to look in more detail later, but wanted to open an issue to track the idea in case I forget). A few thoughts: