elasticsearch/elasticsearch — Issue #1476: Get API: GetField.getValue() returns inconsistent result type for binary fields
Author: ahfeel
Created: 2011-11-17 13:06:22+00:00
State: open

After a Get request, Java API GetField.getValue() of a binary field may return different type of value depending on whether fetching the document was done from the transaction log or from the index.

When fetching from the index, the result is a very convenient byte[], while when fetching from the transaction log, getValue() returns the base64 encoded representation as a String.

Both ways should return a byte[].