lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: Queries regarding solr cache
Date Thu, 01 Dec 2016 16:10:28 GMT
On 12/1/2016 8:16 AM, Dorian Hoxha wrote:
> @Shawn
> Any idea why the cache doesn't use roaring bitsets ?

I had to look that up to even know what it was.  Apparently Lucene does
have an implementation of that, a class called RoaringDocIdSet.  It was
incorporated into the source code in October 2014 with this issue:

As for the reason that it wasn't used for the filterCache, I think
that's because the filterCache existed LONG before that bitset
implementation was available, and when things work well (which describes
the filterCache), devs try not to mess with them too much.

I have mentioned the idea on a recently-filed issue regarding bitset
memory efficiency:


View raw message