Type: New Feature
Resolution: Not A Problem
Affects Version/s: None
Fix Version/s: None
Lucene Fields:New, Patch Available
Today the facets API lets you write IntEncoder/Decoder to encode/decode the category ordinals. We have several such encoders, including VInt (default), and block encoders.
It would be interesting to implement and benchmark a PackedIntsEncoder/Decoder, with potentially two variants: (1) receives bitsPerValue up front, when you e.g. know that you have a small taxonomy and the max value you can see and (2) one that decides for each doc on the optimal bitsPerValue, writes it as a header in the byte or something.
|Field||Original Value||New Value|
|Summary||Writer a PackedIntsEncoder/Decoder for facets||Write a PackedIntsEncoder/Decoder for facets|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Lucene Fields||New [ 10121 ]||New,Patch Available [ 10121, 10120 ]|
|Resolution||Not A Problem [ 8 ]|