: One clarification, is the maxdocs the max docs in the set, or the matched 
docs from the set?
: 
: If there are 1000 docs and 19 of them match, is the maxdocs 1000, or 19?

Erick ment the maxDocs of the index -- but that's really just a rule of 
thumb approximation that applies when many docs match throughout the 
entire index.  

The objects stored in the cache are "DocSet" instances, and there are 
optimizations in the code to choose between differnet DocSet 
implementations based on how many documents actually match.  Even when 
the bitset based implementation is choosen, there are additional 
optimizations to use a compact bitset when there are large "gaps" in 
between set bits.


-Hoss

Reply via email to