I use ES 5.0.2 and Transport 5.0.2. The
GetResponse.getFields() is marked deprecated with a notice to use
.getSource() instead. However, if I submit a Get request with
stored_fields=x,y,z, I get back a 'fields' element, and calling
.getSource() returns an empty map, while
getFields() returns the stored fields.
So how should I retrieve stored fields? I know I can fetch the entire source and then filter in the client, but I wish to filter at the server side already, so I load only requested fields.