I have an index where I defined some stored fields for a given type. I then had some docs that I didn't need to define a mapping and just threw them in the same index under a different type. I perform a search across both types and ask for the stored fields back. The results for the type with the stored fields has the fields returned, but the results for the type that I did not set the stored field does not return the fields. The field names are the same across each type. I expected the fields that were not stored to be pulled from the source but that does not seem to be the case. I read in the docs that said it is recommended that types with the same fields names is recommend to have the same mappings, so maybe this is just a problem with that. Considering both are string fields, analyzed the same, and the difference is only stored vs. not stored, it might be a bug?
Here is a gist showing the problem:
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)