Having the following mapping:
curl -XPUT \'localhost:9200/testidx?pretty=true\' -d \'{ \"mappings\": { \"items\": { \"dynamic\": \"strict\",
Up to elasticsearch 6.0.0 you can set "include_in_all": false to your index field properties, see e.g. https://www.elastic.co/guide/en/elasticsearch/reference/5.5/include-in-all.html.
elasticsearch 6.0.0
"include_in_all": false
(This of course needs a reindexing of the data.)