Lucene's custom codec to minimize memory footprint for facet fields