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.
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.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.