Stored fields can be applied to any concrete, non-object/non-complex types. So keyword, text, the numerics, IP, dates, etc.
I don't believe it works for nested, object or geo_point/geo_shape. Basically, any of the complex types that are actually composed of sub-types won't work.
I'm not sure if this is documented anywhere unfortunately. We should fix that
thanks Zach for the reply.....what you state does make sense, but I would have expected this to be more explicit in the documentation, as in, stored fields don't apply to certain types; as it's been very much a trial and error for me and even wondering if I was doing something wrong in my code or buggy version of ES.
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.