`store`'d fields w/ `index_name` in mapping loaded using `fields` returned in `hits` objects keyed by `index_name`?

In attempting to work around
https://github.com/elasticsearch/elasticsearch/issues/5851, I found
that store'd fields with index_name in their mapping loaded using fields <http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html>
are returned in hits objects keyed by their index_name (e.g.,
"name_string", not "name" in this example). Here is a gist demonstrating
this: https://gist.github.com/nezda/6a360d44927d275178a9

This seems like a bug to me to expose this mapping "implementation detail".
If it is intentional, maybe it could be disabled with a parameter on the
fields loader?

(Tested with es 1.4.2)

Please advise,

  • Luke

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ce90f059-76d6-4997-a112-3cf5d45f542f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.