Allow to make the stored compression configurable on the index level (index.store.compression.level
), and use that when constructing the codec to use.
If possible (will be tricky), allow to set it on a live index, so for example, for time base indices, older indices can move to use higher compression mode and optimized (which should probably be done over a different issue once the setting is implemented).