Editing or Prettifying the Source

Hi Elasticsearchers,

It is great to be able to just get the source of a document directly
with field scripts. I was just wondering if it was possible to edit
the source itself. This is particularly useful if you are giving the
client direct access to the raw json. You may want to omit the id key
of the document or some other security sensitive information. You may
want to rename some of the keys to a more user-friendly name. Is it
possible to include parameters to achieve this effect?

Of course, this does not have to be done on the elasticsearch side.
But, it would be really neat if there was this possibility or if the
feature was implemented in a future version.

Cheers,
Ted

There isn't a way to do it. The main problem here is how is the user going
to define how the json looks like. I have some ideas, but it will happen
later in the lifecycle of elasticsearch.

On Tue, Sep 28, 2010 at 4:32 PM, Ted Karmel ted.karmel@gmail.com wrote:

Hi Elasticsearchers,

It is great to be able to just get the source of a document directly
with field scripts. I was just wondering if it was possible to edit
the source itself. This is particularly useful if you are giving the
client direct access to the raw json. You may want to omit the id key
of the document or some other security sensitive information. You may
want to rename some of the keys to a more user-friendly name. Is it
possible to include parameters to achieve this effect?

Of course, this does not have to be done on the elasticsearch side.
But, it would be really neat if there was this possibility or if the
feature was implemented in a future version.

Cheers,
Ted