I would add that estimating (and later computing) the ratio between filter hits and total docs helps find the best approach. AFAIK, Lucene/ES does some of that with ACORN.
Here's how Vespa does it: blog.vespa.ai/constrained-...
I would add that estimating (and later computing) the ratio between filter hits and total docs helps find the best approach. AFAIK, Lucene/ES does some of that with ACORN.
Here's how Vespa does it: blog.vespa.ai/constrained-...