So, correct me if i'm wrong, but the whole purpose of the mapping is to make the field searchable.
If i have fields that i don't to search on (only to retrieve them with the query) then there's no reason to create mapping for them, is that correct?
A field has to be mapped. In that mapping you can define it to be searchable or not.
If you don't explicitly map a field, and you don't have strict mapping set, then it will have a dynamic mapping applied to it which will make it searchable.
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.