elasticsearch
elasticsearch copied to clipboard
Re-arrange document id bytes to take advantage of shared prefixes
Here we change the auto generated document id structure so to favour compression of the Lucene terms dictionary used to store document ids. The idea is to generate the document id including never-changing or slowly-changing bits first so that, when storing document ids, large sequences of values share the same prefix.