elasticsearch/elasticsearch — Issue #1421: Mapping: Allow to include / exclude specific parts of it when storing it
Author: kimchy
Created: 2011-10-24 22:01:37+00:00
State: open
Labels: enhancement, v0.18.0

The `_source` field is by default stored. Sometimes, not all of it is needed to be stored, and the ability to include / exclude parts of it is needed. The `_source` mapping should support `includes` and `excludes` array options, specifying which part of the document are to be stored. The format allows to do things like: `path1.*`, `path1.*.path2` using `*` as a wildcard. Here is an example:

{
"my_type" : {
"_source" : {
"includes" : ["path1.*", "path2.*"],
"excludes" : ["pat3.*"]
}
}
}