Hi, I'm having an index where I'm storing a binary doc value being equal to a serialized 8 byte value. The values are consumed by a custom Query implementation, using LeafReader.getBinaryDocValues().
However, what I found is the following. To each binary doc value returned by BinaryDocValues.get(docID), a sequence of two bytes of appended. In particular, at the first position it is always a byte equal to 1, whereas at the second position always a byte equal to 8. Hence, the length of the retrieved byte array is always equal to 10, and not 8 as stored. Could please someone explain why are these bytes being appended at the head of the array, where are these bytes appended and how to get the original value? Kind regards, Dominik
