Mapping: Using _default_ mapping type with _source excludes (or array based config) can cause the array to grow indefinitely #2317

Closed
kimchy opened this Issue Oct 12, 2012 · 0 comments

Projects

None yet

1 participant

Owner
kimchy commented Oct 12, 2012

Here is an example for mapping, where if new fields are being introduced, it causes the excludes array in _source to keep on growing with the same value.

curl -XPUT localhost:9200/test -d '{
"mappings" : {
 "_default_" : {
     "date_detection" : false,
     "_source" : { "excludes" : ["*smart_typed*"] },
     "dynamic_templates" : [
       {
       "numberIndexing":{
         "match" :"smart_typed_number_*",
         "mapping":{
           "type":"double"
         }
       }
     },
     {
       "geoIndexing" : {
         "match" : "smart_typed_location",
         "mapping" : {
           "type" : "geo_point"
         }
       }
     },
     {
       "exactString" : {
         "match" : "*",
         "match_mapping_type" : "string",
         "mapping" : {
           "type" : "multi_field",
           "fields" : {
             "{name}" : {"type": "string", "index" : "analyzed"},
             "exact" : {"type": "string", "index" : "not_analyzed"}
           }
         }
       }
     }
     ]
 }
}
}'
@kimchy kimchy added a commit that closed this issue Oct 12, 2012
@kimchy kimchy Mapping: Using _default_ mapping type with _source excludes (or array…
… based config) can cause the array to grow indefinitely

closes #2317
384286d
@kimchy kimchy closed this in 384286d Oct 12, 2012
@kimchy kimchy added a commit that referenced this issue Oct 12, 2012
@kimchy kimchy Mapping: Using _default_ mapping type with _source excludes (or array…
… based config) can cause the array to grow indefinitely

closes #2317
3eaad15
@mute mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
@kimchy kimchy Mapping: Using _default_ mapping type with _source excludes (or array…
… based config) can cause the array to grow indefinitely

closes #2317
aa50458
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment