This blog post discuss the implementation of an indexable bitset in tantivy.