Commit d086ee6c authored by Matija Obreza's avatar Matija Obreza

ES mapping: Do not store _source

parent 94d0448d
......@@ -155,6 +155,11 @@ class CustomMappingBuilder {
// Dynamic
mapping.field(FIELD_DYNAMIC, false);
// We don't want the source stored in the index
XContentBuilder ignoreSource = mapping.startObject("_source");
ignoreSource.field("enabled", false);
ignoreSource.endObject();
// Properties
XContentBuilder xContentBuilder = mapping.startObject(FIELD_PROPERTIES);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment